on 04-06-2017 3:16 PM
Hi
We are trying to Call Salesforce and SAP web services in a single Integration flow which is giving us error as
An internal server error occured: content-type of the request should be text/xml.The MPL ID for the failed message is : AFjmOf1YKeEmj9SGwxQ04bkZlQqsFor more details please check tail log.
In the upper section we are calling Salesforce to fetch a sales order and in the lower section we are pushing it to SAP
Whereas Both Salesforce part and SAP part works fine individually in separate flows
Namespace Mapping : xmlns:p1=urn:sap-com:document:sap:soap:functions:mc-style;xmlns:ns0=http://sap.com/xi/XI/SplitAndMerge;xmlns:ns2=urn:sap-com:document:sap:soap:functions:mc-style;xmlns:p2=urn:enterprise.soap.sforce.com
Both the web service uses namespace as below
Salesforce : xmlns:p2=urn:enterprise.soap.sforce.com
SAP : xmlns:p1=urn:sap-com:document:sap:soap:functions:mc-style
Please help if there is something which is wrong in the flow
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Raj,
Can you try setting Header with Content-Type value text/xml;charset=UTF-8
Also please share complete MPL if possible and you can locate the step where you are getting this error.
Also lets give a try to use new feature of SAP HCI SOAP Adapter which clears all the headers from SOAP response [ In case issue is happening in second request reply ] and then set the above header manually using content modifier.
Regards,
Sriprasad Shivaram Bhat
mpl.txtHi Sriprasad
I updated the eclipse plugin for Hana Cloud integration, checked the check box for Clean-up request Header, and set the "Content-Type" to "text/xml;charset=UTF-8", the flow didn't work.
The error remains as
An internal server error occured: content-type of the request should be text/xml.
The MPL ID for the failed message is : AFjpEzXobhXhjG_rnxO60bQfqKMe
For more details please check tail log.
PFA the attachment of the MPL file
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.