on 02-11-2009 1:52 PM
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?
Hi Damien,
is it possible that the SOAP receiver returns a response in the wrong format?
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Uno,
I've tried using that but my SOAP Adapter uses a cert so I can't test the webservice wth that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Udo,
Yes its possible but I've no way of finding out what the responses are?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.