Quantcast
Channel: SCN : Popular Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 971

Changing "content-Type" header parameter for inbound SOAP structure

$
0
0

Hi,

 

We have an IDOC to SOAP scenario and we are using PI 7.1. The target system is using SOAP 1.2 protocol. So we got all the necessary components necesssary for AXIS framework as suggested by SAP support team. We are now using Axis message protocol with SOAP version 1.2. Now when we try to send the data we get the following error message in RWB Message monitoring:

 

Delivering 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: org.xml.sax.SAXParseException: Premature end of file..

 

 

After sending the above error message along with the TCP Gateway trace to SAP Support team, the reply from SAP Support team was as follows :

 

thank you for the collected trace. This reply from the target server
is important:
"HTTP/1.1 415 Cannot process the message because the content type
'application/soap+xml; charset=UTF-8; action=""' was not the expected
type 'text/xml; charset=utf-8'."

(As you can see the content type what was sent in the message header
can not be accepted on the receiver system. This is the header of the
sent data:

POST /LNTAXSAPServiceEngine.svc?wsdl HTTP/1.0
Content-Type: application/soap+xml; charset=UTF-8; action=""
Accept: application/soap+xml, application/dime, multipart/related, text/User-Agent: Axis/1.4
Host: poeesmstest.lntroot.com:88
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 3759

You have two possibilities now:
1.) Discuss this with the administrator of the receiver system, if they
can change their configuration to accept the currently used content type.

2.) Or set "Content-Type" header parameter to 'text/xml; charset=utf-8'
as it is described in this document:
"how to set http header parameters using the axis.pdf"
I attached it to this ticket.)

 

the document referred here can be found at : http://scn.sap.com/docs/DOC-16148

So, going with the 2nd option, we are trying to change the header type as explained in the pdf attached. I have created/ added the module in ID and UDF in IR.

Now I am stuck with the mapping part. Can someone please explain what "Item" are they referring to. Is it a new field/node that I need to get added in the receiver SOAP structure. Any help would be appreciated.

thanks in advance.

 


Viewing all articles
Browse latest Browse all 971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>