Question
WIPRO Ltd
IN
Last activity: 6 Jun 2018 1:54 EDT
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.