cancel
Showing results for 
Search instead for 
Did you mean: 

soap receiver - owerwrite default http header fields

Former Member
0 Kudos

Hi,

I'm using the soap receiver adapter in nosoap mode.

How can I owerwrite the default settings for the header fields in the http request?

The soap adapter will automatically set content-type = application/xml.

I would like for example set "text/xml".

Thanks,

Bela

Accepted Solutions (0)

Answers (3)

Answers (3)

STALANKI
Active Contributor
0 Kudos

check wether you can overwrite in reciever agreements.you have the header mapping there..

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

in most cases you can easily change it in your

own adapter module - method - setContentType

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

Former Member
0 Kudos

Hi Michal,

Thanks for your answer, gave very useful direction.

For the content type no need to develop your own module with the module= localejbs/AF_Modules/MessageTransformBean and parameter name= Transform.ContentTypeit works fine.

Best regards and thanks for your messages,

Bela

Former Member
0 Kudos

Bela

While specifying SOAP Receiver conversion Parameters check both the checkboxes in "DoNot use SOAP Envelope" and "Keep Headers" and tryout.

Regards,

---Mohan

Former Member
0 Kudos

Dear Mohan,

I tryed with the keep headers option but it didn't change anything to the HTTP header fields.

In the documentation we have the following : Keep Headers

If you want to include the header of the XI message in the Web service message, set the indicator.

Does it mean that I have to create a HTTP header section in the XI message??? Do you have an example?

Best regards,

Bela