sending soap fault response from a WSDL proxy service
Hi All,
I have a WSDL based proxy service. I am expecting if a message comes with incorrect format according to w3c addressing protocol, it will generate a soap fault automatically. But it looks like it does not do that.
It just returns errorcode 500- Internal server error. Do I need to build soap fault in system error handler to be returned as part of a error response?
In the proxy I also check for a specific element in the soap header and if not present I raise error. This error also go to system error handler attached to the proxy. I am using reply with failure in the system error handler . I need this error to be returned as a soap fault to the external caller of this proxy service but It does not return any soap fault, returning only the error code.
If I need to build the soap fault then what variable should I populate to return this to the caller? fault variable or body variable?
I need to send both the http response code and soap fault to the caller.
Please suggets