on 02-23-2012 3:11 PM
Hello experts,
I am using PI 7.3
I have a senario SOAP to IDOC which SOAP is a sender adapter.
My Web Service receives attachment which includes MTOM, xop:include
I read the attachment in the message mapping by User-Defined function.
But I have another problem while message mapping.
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>Unexpected value <null> for node /ns0:TrainingAttachment/ns1:binary</SAP:P1>
in attachment part of the web service is following,
<urn1:attachment>
<urn1:binary>
<inc:Include href="cid:87732-65c0-665c" xmlns:inc"http://www.w3.org/2004/08/xop/include" />
</urn1:binary>
</urn1:attachment>
I think my message mapping doesnt resolve the binary part
I tried the Do Not Resolve XOP Includes checkbox, nothing changed
Thanx for your help
Hasan
Edited by: ordu_hasan on Feb 23, 2012 4:12 PM
Hello Experts
I am trying to send a similar MTOM attachment message from soapUI to my test scenario (Webservice -> PI -> ERP WebService) in SAP-PI7.3.1:
Here is the input: (with attachment: test.txt)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://ccsap.bit.admin.ch/soa/ccsap/SalesOrderChange/v1">
<soapenv:Header/>
<soapenv:Body>
<v1:SOASalesOrderAttachmentRequest>
<SALES_DOCUMENT>12234</SALES_DOCUMENT>
<AR_OBJECT>VBAK</AR_OBJECT>
<SAP_OBJECT>cid:test.txt</SAP_OBJECT>
<SIMULATION>X</SIMULATION>
</v1:SOASalesOrderAttachmentRequest>
</soapenv:Body>
</soapenv:Envelope>
I used WS (sender) Adapter to send the above message.
in SXMB_MONI, it look like as follows:
Main Document
As explained by Dzimtry above, I have added the XSLT mapping before the message mapping but still getting the following exception:
Additional Error Text: Typ Content-ID contains invalid characters, Kernel Error Id Please change the mapping.
after this error, the payload look like this ( attachment is converted to BASE64)
Can anybody tell, what I am doing wrong here?
Thanks for your valuable time in advance!
Best Regards
Satish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
did you find solution?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kiryl,
The solution proposed by Dzmitry Skubilau worked like a charm
Only the small detail that the xslt file MUST use xsl as namespace. Run a find&replace on your favorite editor before uploading and everything will work fine.
BR,
David R.
Hi Hasan,
Please, try to implement next xslt mapping before message mapping.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:stylesheet version="1.0" xmlns:ns0="http://www.w3.org/1999/XSL/Transform" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:ns2="https://onlineservice.creditreform.de/webservice/0400-0005">
<ns0:template match="node() | @*">
<ns0:copy>
<ns0:apply-templates select="node() | @*"/>
</ns0:copy>
</ns0:template>
<ns0:template match="xop:Include"/>
</ns0:stylesheet>
Regards, Dzmitry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.