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 Yves Langisch <li...@langisch.ch> on 2004/01/08 14:12:11 UTC

exceptionName element in Soap-Fault

Below you see a Soap-Fault generated by Axis. Can someone explain what 
the element exceptionName is for? Is a.b.c.SalaryDeclarationFaultType in 
this response processed through the caller to know which exception has 
to be thrown (or is this done in the wsdd?) ? If yes, the package 
structure of both the sender and receiver has to be the same?!? Can 
someone shed some light on this?

<?xml version="1.0" encoding="UTF-8"?>
<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>soapenv:Server.generalException</faultcode>
    <faultstring>Acceptance error</faultstring>
    <faultactor>xyz</faultactor>
    <detail>
     <ns1:SalaryDeclarationFault xmlns:ns1="http://www.xyz....">
      <ns1:UserAgent>
       <ns1:Producer>xyz</ns1:Producer>
       <ns1:Name>xyz</ns1:Name>
       <ns1:Version>0.1</ns1:Version>
       <ns1:Certificate>xyz</ns1:Certificate>
      </ns1:UserAgent>
      <ns1:Social-Insurance-Name>xyz</ns1:Social-Insurance-Name>
      <ns1:ResponseID>94DD02B0E0DE7205BFFC8FB4586F2958</ns1:ResponseID>
      <ns1:RequestID>281441</ns1:RequestID>
      <ns1:State>
       <ns1:Code>NOT_plausible</ns1:Code>
      </ns1:State>
     </ns1:SalaryDeclarationFault>
     <ns2:exceptionName 
xmlns:ns2="http://xml.apache.org/axis/">a.b.c.SalaryDeclarationFaultType</ns2:exceptionName>
    </detail>
   </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>

Thanks!
Yves