e.g.,
throw new SOAPException(org.apache.soap.Constants.FAULT_CODE_CLIENT, "something went wrong");
You may want to write a custom FaultHandler, if you want to provide more detailed information to the client.
Omprakash Bachu wrote:
Hi, from RPC serivce I'm trying to set custom fault code and hence will be available to retrieve by using fault.getFaultCode() API, but it seems that Apache by default sets this as SOAP-ENV:Server, can anyone help me how to override this code?Sample: <faultcode>SOAP-ENV:Server</faultcode> <faultstring>I can set custom string, this is ok</faultstring> Cheers!!! Om -- To unsubscribe, e-mail: <mailto:soap-user-unsubscribe@;xml.apache.org> For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org>
-- To unsubscribe, e-mail: <mailto:soap-user-unsubscribe@;xml.apache.org> For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org>