Skip to Content
2
Former Member
May 26, 2013 at 07:35 PM

Invalid content type for SOAP: TEXT/PLAIN; HTTP 500 Internal Server Error

1987 Views

Hi all,

I am trying to test an ICO using Soap UI.

The scenario is SOAP - SOAP

I am using SOAP 1.1 protocol with proper authentication data.

The target URL used in Receiver Soap adapter is

http://<host_server>:50000/MessagingSystem/receive/JPR/XI

and in browser, the above URL redirects to:

==============================================================================================

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<StatusInfo>

<StatusMessage>MessagingServlet is active.</StatusMessage>

<Version>Messaging System 7.1</Version>

<Usage>

http://[host]:[port]/MessagingSystem/receive/[connection]/[protocol]

</Usage>

<RequestURL>

http://<host_server>:50000/MessagingSystem/receive/JPR/XI

</RequestURL>

<Connection>

<Name>JPR</Name>

<Status>started</Status>

<Listener>registered</Listener>

</Connection>

<Protocol>

<Name>XI</Name>

<Status>EventHandler registered</Status>

</Protocol>

</StatusInfo>

==========================================================

Just for testing, I have used the same structure in Sender and Receiver side.

In SOAP UI,

It is showing this below error:

<detail>

<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">

<context>XIAdapter</context>

<code>ADAPTER.JAVA_EXCEPTION</code>

<text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 500 Internal Server Error

============================================================================================

Gone through many blogs related to this issue and tried many things starting with the option "Do Not Use SOAP Envelope" , adding localejbs/AF_Modules/MessageTransformBean

The audit log for the failed message in PI is given below:

=========================================================================================

2013-05-26 19:47:42.904 Success MP: processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean 2013-05-26 19:47:43.987 Success XISOAP: Received an XI message for processing 2013-05-26 19:47:43.987 Success XI Packaging (Bulk Mode) is not Enabled, Proceeding to the Normal Processing. 2013-05-26 19:47:43.987 Success SOAP: request message entering the adapter with user Guest 2013-05-26 19:47:44.108 Error Failed to call the endpoint: HTTP 500 Internal Server Error 2013-05-26 19:47:44.109 Error SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 500 Internal Server Error 2013-05-26 19:47:44.122 Error SOAP: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 500 Internal Server Error 2013-05-26 19:47:44.122 Error MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 500 Internal Server Error 2013-05-26 19:47:44.126 Error Exception caught by adapter framework: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 500 Internal Server Error 2013-05-26 19:47:44.126 Error Transmitting the message 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 500 Internal Server Error 2013-05-26 19:47:44.166 Error Message status set to FAIL 2013-05-26 19:47:44.214 Error Returning to application. Exception: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 500 Internal Server Error 2013-05-26 19:47:44.214 Error MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 500 Internal Server Error 2013-05-26 19:47:44.215 Error SOAP: call failed: com.sap.aii.af.lib.mp.module.ModuleException: senderChannel 1326c2f505563c3783bc47a1f288082e: Catching exception calling messaging system 2013-05-26 19:47:44.215 Error SOAP: call failed com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 500 Internal Server Error

Now I am not having any clue where I am going wrong. Is it anything to do with the Target URL or SOAP receiver module configuration?

Please help me on this.