Skip to Content
0
Former Member
Jul 20, 2011 at 04:38 PM

Webservice hell - invalid content type for SOAP: TEXT/HTML

5845 Views

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.