Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

solution for extracting faultstring from SOAP FAULT EXCEPTION

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator


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


 
prince davies
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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










 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Double-posting.
See this thread: https://coderanch.com/t/562634/Web-Services/java/SOAPFaultException-EXTRACTING-FAULT-STRING-XPATH
Locking this thread.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic