Question

33
Views
BHARATHIDEVIB Member since 2014 1 post
CGI
Posted: May 21, 2018
Last activity: June 6, 2018
Closed

Return pyhttpresponsecode even if SOAP Service(external) fails.Is this possible, Please suggest..

Need to get pyhttpresponsecode in the response Page even if the SOAP service fails.

Verified the API Activity InvokeAxis2 ,Could observe that If there is no exceptions from Service end, Its sets the pyHttpResponseCode from the StatusCode .
But If the service fails, then an exception is thrown and it ends up the activity, Thus No pyHttpResponseCode will be set.
So no matter how the service fails, will have pyhttpresponsecode as null and pySoapFaultReason contains Exception/Error.

Requirement:
If the SOAP service fails, need to differentiate logic based on pyhttpresponsecode == ""
If the SOAP service fails, need to differentiate logic based on pyhttpresponsecode!=”200”

But for both the above scenarios we will get pyhttpresponsecode as null and pySoapFaultReason contains Exception/Error.

Data Integration
Moderation Team has archived post
Share this page LinkedIn