Skip to Content

MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 200 OK

Dear Experts,

I am sending XML data to target using SOAP Receiver channel. However facing the below issue:

Error: Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 200 OK

Steps which is been followed are:

>> I've configured SOAP adapter using SOAP 1.1 protocol.
>> Target URL works fine at browser level.

>> Do not use SOAP envelope is disabled at sender and receiver channel.

>> The same scenario is working fine in PRD environment.

>> I've used also tried using completed URL.
>> When I ping receiver channel it connects to target successfully.

If you have any suggestions to fix this issue please let me know.

Regards,
Vidhya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Best Answer
    Jun 05, 2017 at 07:15 AM

    My scenario worked when I used complete URL format in SOAP receiver channel with &nosoap=true at the end.

    I've also checked "Do Not Use SOAP envelope".

    Thank you all,

    Regards,

    Vidhya

    Add comment
    10|10000 characters needed characters exceeded

  • May 29, 2017 at 01:59 PM

    Hi Vidhya,

    May be you have a dispatcher like TOMCAT that stops the communication or the SOAP server that responses a HTML page error. Try with SOAPui.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 01, 2017 at 05:16 AM

    Hi Experts,

    When I checked with target they say they have received files.

    So I understand that there is no problem in message transport even though I'm facing HTTP 200 ok in my PI system.

    Could you please suggest what could be the issue? Would there be any issue with target PI?

    Regards,
    Vidhya

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 01, 2017 at 06:23 AM

    Hi Vidhya!

    Take a look at this blog:

    https://blogs.sap.com/2015/10/26/http-tracing-in-soap-receiver-adapters-with-tracehttp-module-parameter/

    You can enable trace for your SOAP receiver adapter and check the log for any errors in response message.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Evgeniy,

      Yes, I've taken XPI_Trace at channel level.
      Have done the complete cache refresh also. Source PI server was also restarted once. Still the same issue.
      This is the XPI trace screenshot:



      Let me know if I can take any other steps before approaching SAP.

      Regards,
      Vidhya

      capture1.jpg (183.1 kB)
  • Jun 01, 2017 at 06:31 AM

    Hi Vidhya,

    Are you sure that your scenario is synchronous? (Service interfaces, and best effort like quality of service in your SOAP channels).

    What type is your sender channel?.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 01, 2017 at 08:09 AM

    Have you tried to check/uncheck the option Do not use SOAP envelope because this parameter will change Text/plain to application/xml.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 01, 2017 at 11:13 AM

    Hi Vidhya!

    I can definitely say that you get error because of incorrect response message type from receiver side.

    So I ask you: what is the response message you get when you call the same service using SOAP UI?

    If you get SOAP XML response message, than check both endpoint URLs in SOAP UI request and in channel settings. Also make sure that you use correct user/password while connecting.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded