on 02-19-2019 11:50 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.