cancel
Showing results for 
Search instead for 
Did you mean: 

Set Content-Type in HCI SOAP Rcvr Adapter

pavithra
Employee
Employee
0 Kudos

I have a scenario in HCI where the content-type of the message being sent from HCI is “content type 'application/soap+xml” .I donot set the content-type anywhere within the iflow . I have a need to overwrite it to type 'text/xml; charset=utf-8'. The wsdl has ws-policy defined,so I cannot use http adapter.

Inorder to override the Content-Type that is being set by the SOAP Rcvr Adapter, I tried to set this in the Content Modifier Header but it does not gets overridden. Could one of you please let me know how to achieve this.

Accepted Solutions (0)

Answers (3)

Answers (3)

john_knight00
Explorer

Hi,

I had the same issue. The solution was straight forward. In my case I added the "Content-Type" header with value "text/xml" in the Content Modifier were the request body was being set:

Also you have to disable the "Clean-up Request Headers" in the SOAP Adapter. Apparently, SOAP adapter will remove any custom headers before sending the POST:

former_member2622
Discoverer
0 Kudos

Hi All,

I have created the same scenario but it is working for me.

Could you please tell me what could be issue?

I am trying to access the RFC Function module using SOAP sender adapter.

Getting below error:

Please let me know if anyone can help?

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Pavithra,

Could you please share the screenshot of the header you have set to change the content type.

Regards,

Sriprasad Shivaram Bhat