Hi,
When we do AXIS2_ERROR_SET, we have to log an error message as well. In "some" situations we can use the same error message we set to the env->error for logging. Like this

AXIS2_ERROR_SET(env->error,
AXIS2_ERROR_MULTIPLE_CODE_ELEMENTS_ENCOUNTERED,
                              AXIS2_FAILURE);
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
                     AXIS2_ERROR_GET_MESSAGE(env->error));

instead of

AXIS2_ERROR_SET(env->error,
AXIS2_ERROR_MULTIPLE_CODE_ELEMENTS_ENCOUNTERED,
                              AXIS2_FAILURE);
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
"Multiple fault code elements encountered in SOAP fault");

If the message is detailed enough for logging I do not see any problem of doing this. Do you?

Cheers,
Kaushalye

--
http://blog.kaushalye.org/
http://wso2.org/


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

Reply via email to