axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Duflot <>
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 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


View raw message