on 03-26-2009 2:02 PM
Hi,
How can I change the content-type (text/xml;charset=utf-8) sent by the SOAP adapter to an external webservice?
I need to sent text/xml as content-type to the webservice, otherwise I get an error.
I have tried with different adapter modules but so far no positive results.
Thanks.
Edited by: Roberto Viana on Mar 26, 2009 2:02 PM
Use Message Transfrom Bean for doing the same
http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
MessageTransformBean parameters contentType will do this
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have added the localejbs/AF_Modules/MessageTransformBean as first module in the SOAP receiver adapter but the receiver stiil getting the same Content-Type (text/xml;charset=utf-8).
I need to find a way to supress/eliminate the charset parameter in the Content-Type.
Do I need to build an own module for that purpose?
Thanks
It is not possible to change the content-type of SOAP adapter. Even not with adapter modules.
When your web service provider does not accept text/xml;charset=utf-8, then you should consider on finding a solution there, as this is a standard and all web service provider should follow the standard.
Regards
Stefan
Hi Stefan, many thanks for your answer.
According to your answer it is not possible to manipulate/change the way PI fills the content-Type.
I was hoping to solve the issue with a custom built adapter module that sets the HTTP header content-type to text/xml without the charset entry, but I understand that's not the case.
Regards,
Roberto Viana
The only way I know:
Set parameter "Do not use SOAP envelope", add the SOAP envelope in mapping (e.g with a simple XSLT), remove the SOAP envelope of the response in mapping as well.
Now you can set the Content-Type with the MessageTransformBean.
As this is a lot of effort, you should check the possibility to have a fix in the webservis provider first.
Regards
Stefan
ref: /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.