Skip to Content

How to throw a message to sxi_monitor in sync proxy call

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 08, 2016 at 12:42 AM

    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



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 08, 2016 at 03:01 AM

    Hi Katie,

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



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.