Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Setting the Content_type in the Header when passing parameter using POST

Not applicable

Hi,

I have a particular type - Content_Type (application/vnd.com.mycar.myapi.v2.0+xml) which I must have to set as Header value when calling Target URL and I need to pass some Request Body Parameters (4-5 Request body parameters). I am creating a Request Paylaod in Assign Message Policy with all Request Body parameters.

When I am using Content-Type = application/vnd.com.mycar.myapi.v2.0+xml

, - request paylaod not retrieve the request body parameter in the paylaod. It allow only when Content-Type = application/x-www-form-urlencoded. I need to set my Content_Type as -

application/vnd.com.mycar.myapi.v2.0+xml

Any idea - How it is possible to pass body parameter with Content_type=

application/vnd.com.mycar.myapi.v2.0+xml

0 2 1,625
2 REPLIES 2