on 08-01-2016 9:27 PM
Hello,
I am trying to call a SOAP 1.2 service and I followed the steps described in blog. I am using the SAP PI 7.31 SOAP Adapter.
I am getting the following error.
com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: Response message contains an error
XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 415 Cannot process the message because the content type 'application/xml' was not the expected type 'text/xml; charset=utf-8'.
I am not sure what should be the ideal Content Type transformation I should use ?
Thanks,
Kiran
Hi Kiran,
Did you set the module configuration of content type as per the document. Refer the page 16 where message transform bean is used to set the content type.
Since the Do Not Use SOAP Envelope option is ticked, the Content Type will default to application/xml, but since the Content Type needs to be application/soap+xml, the need to use the MessageTransformBean becomes apparent. And the Transform.ContentType module configuration ensures that the SOAP 1.2 Content Type is used.
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
Can you check from the monitoring what is the content type of your response message xml.
I guess request message is fine. Response message is coming to PI with content type of SOAP 1.2 , but as it needs to convert into SOAP 1.1 content type which is text/xml that is not happening.
Please check once.
Thanks,
Apu
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.