cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Adapter Content-Type

Former Member
0 Kudos

Hi,

we move a Interface from BC to XI and now the problem come up that the content type isn't correct anymore.

With BC we Post a request with Content Type <b>application/x-sap.idoc</b> to a specific url.

With XI i use the SOAP Adapter for sending the Idoc structure but now in the header the Content-Type is <b>application/xml</b> is there any possibility to change this in the SOAP Adapter.

Or do i have to use another adapter? Somebody has experience with that?

Regards,

Robin

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi -

Not sure from you description if the SOAP sender or receiver adapter is involved. In any case, there is a standard SAP delivered module (MessageTransformBean) that can be used to convert the content-type. This definitely works on the receiver side, but I haven't tried it on the sender SOAP side. Please look at the following thread: https://forums.sdn.sap.com/click.jspa?searchID=473847&messageID=2422573

Another, less cleaner alternative is to set the content-type within a mapping. See Note 779981 for details on this.

Regards,

Jin

bhavesh_kantilal
Active Contributor
0 Kudos

Jin

Thanks for pointing to that note. Was very useful info.

Regards

Bhavesh

Former Member
0 Kudos

I don't know a standard way to modify the Content-Type.

You can write a custom adapter module that make this:

From http://help.sap.com/saphelp_nw04/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/content.htm

<i>"In the receiver adapter, if you want to add your own modules to process the request message, you add them before the module specified below; if you want to add your own modules to process the response message, you add them after the following module:

sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean"</i>

Or you may try to use the HTTP adapter, there you have the control on content-type

Regards,

Sandro