axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Duflot <pduf...@gmail.com>
Subject How to set fault message
Date Mon, 03 May 2010 10:03:48 GMT
Hi List,

I want to set the <faultstring> element inside the <soapEnv:Fault> element
to a custom error message.

I notice the MACRO [AXIS2_ERROR_SET_MESSAGE].
I tried using this macro in my service skeleton when I catch an exception
thrown by my service implementation.
Unfortunately, the MACRO just copies the pointer to the error message and my
buffer is freed when the exception goes out of scope.

So, what is the recommended way to allocate a memory buffer and transfer its
ownership to the axis run-time ?

I had a look at the axutil_property_xxx. Is this the way to go ?

Thank you

Patrick

Mime
View raw message