on 05-17-2016 8:29 PM
Hi All
Can you please help us change the below value in our message to the partner in which we are sending the attachment - everything seems to be coming through fine on the message - except the part where the below type need to replaced from type="text/xml to type="application/xop+xml";
Content-Type: multipart/related; boundary=SAP_5474z111-1b85-155c6-99d7-09825351e94b6_END; type="text/xml"; start="<soap-721456787D5F1GLK5493F0ADEEE7749123E8@sap.com>"
NEED to REPLACE type="text/xml
with type="application/xop+xml";
CAN THIS BE ACHIEVED IN THE ADAPTER MODULE - OR WAT IS THE BEST POSSIBLE SOLUTION.
We thank you for your valuable timely inpts
Thank you,
Shravya
Hello Shravya,
Yes, this can be done using the MessageTransformBean. Please use this module parameter as below -
localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean 1
1 Transform.ContentType application/xop+xml
SOAP adapter adds, text/xml by default, hence please check "Do Not use SOAP Envelope" in SOAP channel.
Regards,
Nitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nithin
We have added below as per your suggestions:
Also, this has been ADDED only the receiver SOAP adapter.
However, we are getting the below error:
<?xml version="1.0" encoding="UTF-8" standalone="true"?>
<!-- Inbound Message -->
-<SAP:Error xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1/>
<SAP:P2/>
<SAP:P3/>
<SAP:P4/>
<SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: Response message contains an errorXIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error</SAP:AdditionalText>
<SAP:Stack/>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Can you please let us know wat could be the issue - for the above error.
Thanks again for your timely help! Nithin
Thank you,
Shravya
Hi Shravya,
Have you checked the check box "Do not Use SOAP Envelope" in your SOAP receiver channel? From the response of web-service i understand, the request is not understood by your web-service. Are you sure, the web-service understands application/xop+xml? Because i feel this is not a standard content type.
Also please test with SOAPUI with application/xop+xml as content type, if we get a response, then the web-service accepts this content type. Please verify this first.
Regards,
Nitin
Hi Sharvya,
If you work with for example MTOM you need more that only to change the content type, i mean in MTOM the attachment is a link reference in the payload for example (SOAP Message Transmission Optimization Mechanism (MTOM) - Enterprise Services Repository - SAP Libra...).
I used the receiver SOAP Axis adapter to work with MTOM.
Regards.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.