Skip to Content

How to return the entire response from SOAP call when the response contains fault.

Hi,

I am new to SCPI. I have a scenario where I want to return the payload when the SOAP call fails. I am integrating with Symantec and the response has other information which needs to be sent back.

My successful response is working fine, but when there is any fault, its not sending the complete error payload back.

Any help to achieve this will be highly appreciated.

Regards,

Prashant

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Feb 19, 2019 at 02:48 PM

    When your flow is starting store it in a data store/global variable.

    When you are in exception sub process, try to get the xml from data store/global variable and send it to your corresponding recepient.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 21, 2019 at 11:41 PM

    Unfortunately my requirement is to send the error response received from the receiver.

    I have managed to get it working by changing the receiver channel to HTTP and adding exception with groovy script to send the response back similar to blog written by Paul Todd.

    https://blogs.sap.com/2015/10/17/hci-first-steps-part-7-handling-errors/

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 27, 2020 at 03:10 AM

    Hi,

    This can be handled by exception subprocess and writing a groovy script to capture exception class returned as mentioned in blog above. Once the class is captured, run the method ex.getDetail() and it will return you the full payload passed from SOAP Fault.

    Thanks,

    Aditya

    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.