cancel
Showing results for 
Search instead for 
Did you mean: 

Changing HTTP header paramter

former_member194786
Active Contributor
0 Kudos

Hi All,

We are trying to connect to a legacy system from SAP PI, however while sending the request we are getting the following error:

"HTTP server code 415 reason Unsupported Media Type explanation Unsupported Media Type". After looking into the issue we found that the Content type that is set by default in HTTP adapter is "content-type: text/xml; charset=UTF-8".

However the content type expected by our legacy system is only "content-type: text/xml".

We have been able to achieve this by using SOAP adapter. However we have not found a way to handle this in HTTP adapter.

Any clues as to how to handle this in HTTP adapter only?

Thanks in advance.

Regards,

Sanjeev.

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

> We have been able to achieve this by using SOAP adapter. However we have not found a way to handle this in HTTP adapter.

> Any clues as to how to handle this in HTTP adapter only?

This is not possible as it is hard coded.

Maybe you can write an OSS ticket to get thos changed.

XML usually has its own encoding declaration, so it is not useful to have it in an http header.