Hi Guys,
Here is the problem I am having.
I am consuming a web service via a class that extends WebServiceGatewaySupport using webServiceTemplate, however the client can only throw a SoapFaultClientException.
When I consume the same service with SOAPUI I get the following soap fault:
Code:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>SOAP-ENV:Client</faultcode>
         <faultstring xml:lang="en">Unknown asset</faultstring>
         <detail>
            <ns2:GetSomeDetailsFault xmlns:ns2="urn:mycompany.com:ps:assetManagementV2">
               <ns2:errorCode>2</ns2:errorCode>
               <ns2:errorMessage>Unknown asset</ns2:errorMessage>
            </ns2:GetSomeDetailsFault>
         </detail>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
My question is this:
How do I access the values of
Code:
 <ns2:errorCode>2</ns2:errorCode>
 <ns2:errorMessage>Unknown asset</ns2:errorMessage>
from the SoapFaultClientException?
Any help on this will be very much appreciated.
I am a newbie when it comes to spring ws.
Thanks