You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Pathuru, Kiran" <Ki...@ect-telecoms.de> on 2004/02/06 19:13:03 UTC

Security Handler, returning error message instead of throwing axi s fault

hello everybody,

I have a Login handler which will check from which IP address the request is
coming and then return an error message if the IP address is not the
intended one. Instead of throwing axis fault, I want to send a SOAP response
like the following which is how the customer receives.


 <soapenv:Body>
  <ns1:method
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn">
   <returnCode xsi:type="xsd:string">1000</returnCode>
   <returnMessage xsi:type="xsd:string">Authentication
failed</returnMessage>
  </ns1:method>
 </soapenv:Body>

Thanks & regards,
kiran pathuru