cancel
Showing results for 
Search instead for 
Did you mean: 

Adapter framework caused an exception: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION-HTTP 415 CANNOT PROCESS the message because of the content type 'text/xml'

former_member188885
Active Participant
0 Kudos

Hi All,

I have a IDOC to Webservice scenario. Even though this is a synchronous scenario, we are not mapping the response that we receive from the webservice.

When we are sending IDOC from SAP, it is successful in the moni. In RWB, the following log is shown:

The webservice party says that the data is not received at their end. But the log shows that the processing is complete and error is in response only.

When the log says processing is complete, doesn't it mean that the data is sent to their system? Should anything be done from PI side?

Regards,

Lavanya R

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

From the screenshot, it looks like the target system is expecting a SOAP 1.2(application/soap+xml) request wherein you are only passing a SOAP 1.1(text/xml) request. You can rectify this issue via two options:

1.) Use Java/XSLT mapping to build your SOAP 1.2 envelope and then use MessageTransformBean to change the content type. You can refer to my How To Guide:

http://scn.sap.com/docs/DOC-29829

See page 10 for SOAP 1.2 Receiver.

2.) Use SOAP Axis Adapter

Hope this helps,

Mark

former_member188885
Active Participant
0 Kudos

Thank you for the reply. So, does it mean that the webservice is not delivering the data that is sent from SAP?

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Yes, you are correct. For your data to post, the SOAP envelope should be SOAP 1.2 and the content type should be application/soap+xml. Native SOAP Receiver adapter uses SOAP 1.1 and text/xml as content type.

Hope this helps,

Mark

former_member188885
Active Participant
0 Kudos

Can we resolve this without the addition of modules in the receiver adapter?

markangelo_dihiansan
Active Contributor
0 Kudos

Hello Lavanya,

The only solution I could think of is to write a UDF that will connect to the URL directly. It will involve a redesign though. I'm not sure why you are avoiding modules, even if you use SOAP (Axis), you would still need to use modules.

Hope this helps,

Mark

Answers (0)