Method implementation functions must return CS_RETCODE. Your implementation function can return the following values:
CS_SUCCEED – to indicate successful execution.
CS_FAIL – to indicate failure. The client stub raises an exception when the server method returns CS_FAIL. You can call the JagSendMsg routine prior to returning CS_FAIL to specify the exception text to be sent to the client.
In general, you should return CS_SUCCEED unless a fatal error occurs. Returning CS_FAIL prevents the client stub from receiving output parameter values. Use an inout or output parameter if you need to communicate method status information to the client application.
Copyright © 2005. Sybase Inc. All rights reserved. |