cancel
Showing results for 
Search instead for 
Did you mean: 

invalid content type for SOAP: TEXT/HTML on Reciever SOAP

Former Member
0 Kudos

HI All,

I have a reciever SOAP channel setup to send a message and its attachments to a supplier. The recieving application is as follows:

"It just receives the stream or contentStream and print out the content. It's just a test to see what you sent to us. It processes all http/https messages."

If I leave the SOAP Envelope on I get the content type error in the header. If I turn the Enveloper off, I get a successful post. They are try to trap what I send to build a SOAP processor, so they want the SOAP envelope. What could be causing this?

Kind Regards,

Chris

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Richard,

The web service address that we must type in target URL of receiver soap adapter is the address to the WSDL. To be sure types this address in your browser and you must see a WSDL code of the webservice that you want invoke.

The reason that you are getting “Delivery Exception: invalid content type for SOAP:TEXT/HTML.” is because you are trying to invoke a web service with wrong address.

So, when SOAP receiver adapter try to put the message on the target side, it can’t and automatically receives an HTTP acknowledge in HTML format. As SOAP adapter doesn’t understand HTML code only XML code, it can’t recognize what kind of error is and generates an exception indicating that the content type is invalid.

Delivery Exception: invalid content type for SOAP:TEXT/HTML is equal to any HTTP code, I have almost sure that HTTP code is a 404 Not Found, but you can’t see it...

Post the URL here for I can check

Cheers,

Ricardo.

moorthy
Active Contributor
0 Kudos

HI,

Have a look into this thread- similar discussion

Also check this- in the Reciever SOAP Adapter configuration i.e Target URL must be url of the WSDL.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/40728f7b-0401-0010-d9bc-8c7...

Hope this helps,

Regards,

Moorthy