cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Adapter problem: Can't figure out where my problem is

Former Member
0 Kudos

Hi,

I've got an Async/Sync interface using BPM that sends a file to XI which is mapped to a SOAP Request and should return a response to a another file.

I'm getting the dreaded "Invalid content type for SOAP: TEXT/HTML" error.

Now I've read through the many threads about this but I can't find a solution.

In the SOAP adapter module I have the folowing modules

localejbs/AF_Modules/MessageTransformBean

localejbs/CreateSOAPStructure

sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean

then in the parameters

transform Transform.ContentType text/xml

2009-02-11 13:44:38 Success Delivering to channel: CC_SOAP_RECEIVER_AR1 
2009-02-11 13:44:38 Success Transform: using Transform.Class:  $identity 
2009-02-11 13:44:38 Success Transform: transforming the payload ... 
2009-02-11 13:44:38 Success Transform: successufully transformed 
2009-02-11 13:44:38 Success CreateSOAPStructure: Module called
2009-02-11 13:44:38 Success CreateSOAPStructure: No attachment found 
2009-02-11 13:44:38 Success CreateSOAPStructure: Module completed successfully 
2009-02-11 13:44:38 Success SOAP: request message entering the adapter 
2009-02-11 13:44:38 Error SOAP: call failed 
2009-02-11 13:44:39 Error SOAP: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: invalid content type for SOAP: TEXT/HTML 
2009-02-11 13:44:39 Error Exception caught by adapter framework: java.io.IOException: invalid content type for SOAP: TEXT/HTML 

if its "successfully transformed" why am I getting the TEXT/HTML error.

....

When I type the target URL from the SOAP Adatper into a web browser I can see the wsdl but if I remove the ?wsdl from the URL I can't. Can anyone explain why?

I can't use XMLSpy but I could confirm that my request reaches the webservice.

Can anyone help me with this?

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Damien,

is it possible that the SOAP receiver returns a response in the wrong format?

Regards,

Udo

Answers (3)

Answers (3)

Former Member
0 Kudos

I tried changing it to a HTTP adapter but I had no luck there either.

AS a SOAP adapter when I select "Do Not Use SOAP Envelope" I get a "HTTP 401 Unauthorized" error. Is this the error that is causing the "invalid content type" error?

Former Member
0 Kudos

Hello,

Were you able to resolve this issue.

Invalid content type for SOAP: TEXT/HTML

Thanks and regards

Basit Shaikh

Former Member
0 Kudos

Uno,

I've tried using that but my SOAP Adapter uses a cert so I can't test the webservice wth that

udo_martens
Active Contributor
0 Kudos

Hi Damien,

i think the application replies with the wrong fromat text/html and it is senseless to search before you did not contact them.

One way to validate that error might be to use https (instead of soap), where u could use the certificate as well. You need to map the SOAP envelope around. You would be able to see the http trace including the content type at TA SMICM.

Regards,

Udo

Former Member
0 Kudos

Udo,

Yes its possible but I've no way of finding out what the responses are?

udo_martens
Active Contributor
0 Kudos

Hi Damien,

you can use freeware tool [soapui|http://www.soapui.org/] for that.

Regards,

Udo