Skip to Content
0

Changing HTTP header Content-Type in Receiver SOAP channel

Oct 17, 2017 at 08:34 AM

171

avatar image
Former Member

Hi guys,

I am facing an issue as my target web app accepts only Content-Type text/xml, but SOAP receiver channel sends by default Content-Type application/xml. So I need to change it.

So what is possible in receiver soap cc is to use custom headers (XHeaderName1). Here I have specified "Content-Type". Now, this has to be taken from Dynamic Config, so I added a DynamicConfigurationBean into module chain and configured it as you can see in screenshots. But it seems not to be working. Any ideas what is wrong there? Or how to resolve this issue please?
Thanks, Peter

ct2.jpg (22.7 kB)
ct3.jpg (45.7 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Manoj K Oct 17, 2017 at 06:22 PM
0

Peter,

That's not true you can set any content type in soap adapter as well :

Channel Log you can see the content-type:

Br,

Manoj


custom.png (17.3 kB)
module.png (11.5 kB)
channel.png (3.7 kB)
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 17, 2017 at 09:28 AM
0

Hi Manoj,

I actually do not use soap envelope and have checked the checkbox. But the content type is still application/xml.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 17, 2017 at 03:54 PM
0

OK, so after my investigation the result is following:

In SOAP receiver channel it is not possible to replace standard HTTP headers.

It is however possible to use HTTP receiver channel where you can specify content details under "Specify Content Details" and you can put there content type and encoding.

Share
10 |10000 characters needed characters left characters exceeded