cancel
Showing results for 
Search instead for 
Did you mean: 

How to throw a message to sxi_monitor in sync proxy call

katie_doody2
Participant
0 Kudos

Hi all, we are calling restful web service in (sap sourcing) using an axis soap adapter.  ECC Proxy->PI->Web Service. The errors for the web service were coming the response and not the fault. We were able to change the response structure to return the error/success in one payload. I am now wanting to check that error and throw an error to sxi_monitor. I am looking for a way to do this. I have searched many blogs, etc and they all seem to be using the fault message. Is there a way to do this from the response payload?

The other problem this is causing is that the message looks like it is successful in sxi_monitor but then it is being sent again and again because it is not successful. From reading up, I think this is because it is not returning as status 200 because it has an error so pi keeps trying to resend it.

Accepted Solutions (0)

Answers (2)

Answers (2)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Katie,

The easiest one would be to output a suppress field in the root node.

Regards,

Mark

Harish
Active Contributor
0 Kudos

Hi Katie,

If you are using the message mapping in response (response message mapping in operation mapping) then you can use the custom exception to throw the error in SAP PI/PO.

Please refer the below blog for more details

Throwing Smart Exceptions in XI Graphical Mapping | SCN

regards,

Harish