Forums Register Login

solution for extracting faultstring from SOAP FAULT EXCEPTION

+Pie Number of slices to send: Send


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>]


+Pie Number of slices to send: Send
XPATH SOLUTION

I am getting SOAPFaultException on the fly and getting cause of the exception. This cause contains XML string to find out respective fault string.

How do i parse and feed soapfaultexception or cause into xpath methods?

How do I get value from the following node faultstring which is 3 layers down
detail
ReceivedFaultDetail
faultstring










+Pie Number of slices to send: Send
You can't expect to wield supreme executive power just because
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 8540 times.
Similar Threads
soapfaultexception
ErrorHandling in Webservice client
ErrorHandling in Webservice client
Soap Fault Implementation
soap fault return empty <detail> element.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:45:50.