SOAP to REST transformation!


How can i change default as i suppose contetnt-type application/soap+xml to text/xml

I tried do it via polices with setting request transformation like:

${request.headers.Content-Type} text/xml

But had no success.

Please advise!

Thank you.

“Exception”: “API Gateway encountered an error. Error Message: API Gateway outbound client encountered An HTTP transport error occured. Error Code: 415, Error Message: Cannot process the message because the content type ‘application/soap+xml; charset=UTF-8; action=“http://xxxx/xxx/xxx/xxxxxx/xxxxxx/Login”’ was not the expected type ‘text/xml; charset=utf-8’. . Request Details: Service - 1, Operation - Login, Invocation Time:2:43:32 PM, Date:Jan 28, 2021, Client IP -, User - Default and Application:null”

There’s a place in API Gateway administration/configuration to map custom content types to your preferred content type. Please check that as well.

Use the “Custom HTTP Header” policy within Routing to set Content-Type as text/xml.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.