cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All

I'm trying to call a webservice in XI and getting the dreaded "invalid content type for SOAP: TEXT/HTML" error.

Running it in XMLSpy it works perfectly well, but not in XI.

Here are some screenshots:

1) The Request sent from XMLSpy

[XMLSpy Request - Successful|http://www.host-images.com/u/files/3spjf72drc9ncjhtiovo.jpg]

2) The successful response to XMLSpy

[XMLSpy response|http://www.host-images.com/u/files/c3u8k9bplpzu8z6il61a.jpg]

3) Here is the error in XI in RWB, together with the XML payload

[XML and RWB error|http://www.host-images.com/u/files/9ex5dhqua9y07lhpja09.jpg]

4) Here is the SOAP Comms Channel

[Comms channel|http://www.host-images.com/u/files/w6pa90yy0nkly628535i.jpg]

Note:

1. The 'Target URL' and the 'SOAP Action' are taken directly from the parameters used successfully in XMLSpy

2. I have already added 'localejbs/AF_Modules/MessageTransformBean' / 'Transform.ContentType' / text/xml;charset=utf-8

I woul really appreciate some help with this, as I'm getting kind of desparate.

Thanks in advance.

0 Likes
View Entire Topic
Former Member
0 Likes

Hi Andy,

Can you please give the screenshot for:

I have already added 'localejbs/AF_Modules/MessageTransformBean' / 'Transform.ContentType' / text/xml;charset=utf-8

Regards,

---Satish

Former Member
0 Likes

As requested

[Module|http://www.host-images.com/u/files/c3m26m2t18kpcp3iv9du.jpg]

Former Member
0 Likes

Hi Andy,

Since you are using in receiver comm. channel try to put this module after the standard module. So put number 2 first and number 1 as 2nd and give a try.

Also try with this more module configuration as per sap help:

Transform.Class com.sap.aii.messaging.adapter.Conversion

Transform.ContentType text/xml;charset=utf-8

http://help.sap.com/saphelp_nw04/Helpdata/EN/24/4cad3baabd4737bab64d0201bc0c6c/content.htm

Regards,

---Satish