cancel
Showing results for 
Search instead for 
Did you mean: 

Handling PI webservice fault messages in SAP BPM.

0 Kudos

Hi All,

We are working on SAP PO scenario on handling PI Webservice Fault messages in SAP BPM.

Kindly share us the steps to work on or provide the documents , links if any.

Regards,

Sabitha

Accepted Solutions (0)

Answers (1)

Answers (1)

udo_martens
Active Contributor
0 Kudos

Hi Sabitha,

please describe your process.

/Udo

0 Kudos

Hi Udo,

Our scenario is as follows  SOAP->PI ->BPM 

                                       BPM <-> PI <-> SOAP

                                       BPM->PI->File

we followed the steps from the link http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90308598-4b8d-2f10-4a9a-b78973859...

Instead of DB we have used the SOAP web service and we want to raise an exception in BPM for the fault message coming from the webservice.

Regards,

Sabitha

ambrish_mishra
Active Contributor
0 Kudos

Hi Sabitha,

AFAIK, fault messages are not accessible in BPM.

https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=1050827

However, there is another post http://scn.sap.com/thread/1680326

which says:

---------------------------------------------------------------------------------------------------------------------------------------

You can catch the SOAP fault message in the response by adding this parameterl -

"XMBWS.NoSOAPIgnoreStatusCode = true" in the SOAP channel -> module tab -> Module configuration.

Module Key will be "soap".

In the IP, you can put in a switch condition and check the response for //*[local-name()='faultcode'], if true, it means this is your fault message in the response. You can then handle this accordingly.

---------------------------------------------------------------------------------------------------------------------------------------

Hope it helps!

Ambrish

Message was edited by: Ambrish Mishra

udo_martens
Active Contributor
0 Kudos

Hi Sabitha,

i dont see a problem. Create an interface containing the fault message type and import it. A new gateway should check if there is a certain value and control the next step to be executed. What is your problem?

/Udo