Question

37
Views
Close popover
BHARATHI DEVI BALIJI (BHARATHIDEVIB)
WIPRO
Senior Software Engineer
WIPRO
IN
BHARATHIDEVIB Member since 2014 1 post
WIPRO
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,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.