Help me to find out a good solution.
Is there any optimal way of extracting fault string from the SOAP FAULT EXCEPTION. i have provided my code how retrieved the fault string.
Parent and Children elements inside SOAP FAULT EXCEPTION
[ <con:errorCode>BEA-382500</con:errorCode>, <con:reason>yyyyyy</con:reason>,
<con:details>
<con1:ReceivedFaultDetail xmlns:con1="<http://www.bea.com/wli/sb/stages/transform/config>">
<con1:faultcode>soapenv:Server</con1:faultcode>
<con1:faultstring>ERR-666666 : error messsage here</con1:faultstring>
<con1:detail>
<ns7:ServiceException xmlns:S="<http://xsi:nil="true">
</ns7:ServiceException>
</con1:detail> <con1:http-response-code>500</con1:http-response-code> </con1:ReceivedFaultDetail>
</con:details>, <con:location><con:node>PipelinePairNode1</con:node><con:pipeline>PipelinePairNode1_request</con:pipeline><con:stage>checkAndDetermineBillingCycles1</con:stage><con:path>request-pipeline</con:path> </con:location>]