cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

adityawsharma
Explorer
0 Kudos

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

0 Kudos

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/

apu_das2
Active Contributor
0 Kudos

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.