Skip to Content

How to capture Soap Fault Message Response

Oct 26, 2016 at 12:27 PM


avatar image
Former Member

Hi Experts,

We have a requirement where we need to capture the fault soap message response while doing a soap lookup. The Webservice do not have a default fault message defined in the the wsdl. When we test the same in SoapUI tool (for error data), we have a sample fault message returned from the Webservice. But the same fault message is not getting captured in PI mapping

Actually, we are using java code for soap lookup and the response is returned as a string to a single field in the target structure (so we don't need to worry about the structure of successful response and faulty response i guess)

Kindly share your thoughts.

10 |10000 characters needed characters left characters exceeded
Former Member

Hi Bhaskaran,

will you be able to achieve?I have similar requirement to capture the fault message in SOAP Lookup.

Can you please share the code?

* Please Login or Register to Answer, Follow or Comment.

1 Answer

Bhavesh Kantilal Nov 03, 2016 at 07:03 AM


How is the SOAP Fault being triggered from the Webservice?

Is it with a tag called <Fault> within your SOAP Body as seen in the below screen shot .If yes, define a Fault Mapping with this structure and then when the fault is triggered, the Fault Mapping will be called.

slbmk.png (22.0 kB)
10 |10000 characters needed characters left characters exceeded