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 Tysnes Are Thobias <ar...@edb.com> on 2005/03/09 12:07:34 UTC

General Exception handling in Axis (SoapFaults)

Hello!
 
Wonder if there exist some documentation of all the SoapFaults which may
be thrown from the Axis engine !?
 
And dows it exist some documentation on how the SoapFaults thrown from
the Axis engine
looks like ? Is the details field, for instance, always populated ?
 
I guess most of them looks like this (unvalid targetservice name):
 
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode
xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.NoService</faultcode>
   <faultstring>The AXIS engine could not find a target service to
invoke!  targetService is TestService2</faultstring>
   <detail>
    <ns2:hostname
xmlns:ns2="http://xml.apache.org/axis/">localhost</ns2:hostname>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
 
Cheers,
Are T. Tysnes