Skip to Content
avatar image
Former Member

Changing HTTP header Content-Type in Receiver SOAP channel

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Oct 17, 2017 at 06:22 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2017 at 09:28 AM

    Hi Manoj,

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2017 at 03:54 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded