Hi All,
We've encountered a challenge while attempting to convert the error message format from the httpCode element to the faultcode element using the map policy in IBM API Connect. Despite meticulously mapping the httpCode input field as per our configuration, the error message persists in being returned within the httpCode element of the output XML. We're seeking your expertise to advise us on resolving this issue effectively. Any insights or suggestions would be greatly appreciated.
Input Error message:
<?xml version="1.0" encoding="UTF-8"?>
<errorResponse>
<httpCode>401</httpCode>
<httpMessage>Unauthorized</httpMessage>
<moreInformation>Cannot pass the security checks that are required by the target API or operation, Enable debug headers for more details.</moreInformation>
</errorResponse>
Expected Error message Format:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>401</faultcode>
<faultstring>Unauthorized</faultstring>
<faultactor/>
------------------------------
RAGHU
------------------------------