This is a topic that seems to come up every now and then but, I haven't seen a 
solution posted that works with the more recent 1.5.0 release of Axis2/C.  
Using wsdl2c generated code, I want to send back to clients a custom error 
message but, I haven't found a way to do so yet.  Currently, It appears that I 
could use the following functions, but when I set the values and return NULL in 
my custom operation code, the client doesn't get the error I've been expecting.

== Code Start ==
adb_myResponse_t *axis2_skel_myService_myOp 
  (const axutil_env_t *env, adb_myRequest_t* myRequest )
{
 axutil_error_set_error_message( env->error, 
  "This is my custom error message..." );
 AXIS2_ERROR_SET( env->error,  
  (enum axutil_error_codes)(AXIS2_ERROR_LAST + 1), AXIS2_FAILURE );
 return NULL;
}
== Code End ==

How do I send a custom error message back to the client to warn the user of a 
potential error in Axis2/C?

  Tony



"Opportunities multiply as they are seized." - Sun Tzu



      

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to