cancel
Showing results for 
Search instead for 
Did you mean: 

invalid content type for SOAP: TEXT/HTML

Former Member
0 Kudos

Hi experts,

i have a scenario, rfc - XI- webservice. Scenario is as synchron but i call in sap R/3 as asynchron (as background Task). In Runtimworkbench show on Soapadapter occured following error

invalid content type for SOAP: TEXT/HTML .

I checked Firewall (OK), I added Moduleconfiguration XMBWS.XMLEncoding with parameter "iso-8859-1", but it doesn't worked. If i do on Converion prameters with "do not use soap envelope", so will be called the webservice, but don't transmitted the data.

I tested the Webservice with XMLSPY, result is ok.

I tested the mapping in Design, there is no error.

Plese help in this regard.

Thanks

Hüsniye

Accepted Solutions (0)

Answers (1)

Answers (1)

henrique_pinto
Active Contributor
0 Kudos

Usually this error means a http error: 400, 401, 402, 404, etc... As the webservice works for XMLSpy, probably it's an authorization/firewall/proxy issue.

Regards,

Henrique.

Former Member
0 Kudos

Hi,

do you mean on called Webservice or on XI.

Regards,

Husniye

Shabarish_Nair
Active Contributor
0 Kudos

Can you post the entire error from SXMB_MONI here ?

Former Member
0 Kudos

Hi,

when i started with transaktion SXI_MAPPING_TEST occured following error msg.

Regards

Hüsniye

Shabarish_Nair
Active Contributor
0 Kudos

2006-09-12 10:41:00 Erfolgreich output 1158050460112 SOAP: <b>request message entering the adapter</b>

2006-09-12 10:41:00 Fehler output 1158050460122 SOAP: error occured: java.io.IOException: <b>invalid content type for SOAP: TEXT/HTML</b>

>>>> Check your structure defined for the request to WS in IR. compare it with the request structure when u test in XML SPY. I guess there is a conflict.

Also Refer:

/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1

/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2

/people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009

Message was edited by: Shabarish Vijayakumar

Former Member
0 Kudos

Hi,

at proxy configuration, is it proxy of XI or proxy of WS

Regards

Hüsniye

Shabarish_Nair
Active Contributor
0 Kudos

it is the proxy of your network.

find the details in IE -> tools -> internet options -> connections.

Former Member
0 Kudos

Hi,

my structure from technical routing

<?xml version="1.0" encoding="UTF-8" ?>

<p2:CreateProjectFromRequisition xmlns:p2="http://tempuri.org/">

<p2:xml>6000000004</p2:xml>

</p2:CreateProjectFromRequisition>

and the request of XMLSPY

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<SOAP-ENV:Body>

<m:CreateProjectFromRequisition xmlns:m="http://tempuri.org/">

<m:xml>hhhhhhhhhhhhh</m:xml>

</m:CreateProjectFromRequisition>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

but it's the same wsdl-file that i use.

Regards

Hüsniye

Shabarish_Nair
Active Contributor
0 Kudos

your Req. to the WS sud be in the same format as the Req. stru. you found while testing it in XML Spy.

I had a similar problem even though i used the message given in WSDL.

CHK -> RFC -> WS weblog i quoted earlier in my post. If it is diff. you will have to create a XSD/MT for the request stru. to WS.

Former Member
0 Kudos

Hi,

i have created a xsd stucture. Now next Problem

SOAP: error occured: java.net.ConnectException: Connection timed out.

Regards

Hüsniye

Former Member
0 Kudos

Hi,

I've got same error, invalid content type for soap:text/html.