on 2017 Aug 17 2:45 PM
HI
Rest to PRoxy synchronous scenario wherein we need to send an image (jpg) to PO 7.5 and then teh same is uploaded in ECC system.
The current flow is already running in PI7.31 with advantco rest adapter .
System details :PO7.5 Sp7.
Error: INstead of image name xxx.jpg visible in ecc sxmb_moni as an atachment, it appears as cid:att-27478460833611e7a2d00000011ec322@sap.com
Am currently testing the same interface in new PO box.
Thanks
Hi Manoj
I see basically two problems:
1. content type of payload in PO is Content Type: application/jason it should be Content Type: application/xml;
which is why the mainDocument in sxmb_moni of ECc is not read by proxy program
2.Attachment name coming as
cid:att-67481d7583e711e7ce450000011ec322@sap.com ( image/jpeg ) than its attachment name.in PO
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj
Attacment name doesnt comes: as attachment.jpg in PO
Also format is application/json of message entering in PO and not getting transformed in application/xml;
bean is working fine stil i don see any change in manifest file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Manoj
I tried with the bean , below observation
1.mesage log in PO confirm bean is not exceuted in sender rest-
2.I don see attachment.jpg name in manifest
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Manoj
Attach is the dynamic config. But i don see any changes still the Content-description is cid:xxx@sap.com and Application/json is the mainDocument format.
Hi ,
Now your issue is the attachment name in SXMB_MONI is not the correct one because the REST adapter has changed this to cid:....@sap.com .
Now you need to read the attachment name via dynamic config and then set it to attachment via OutPutAttachment by doing this the attachment name in SXMB_MONI will appear correctly.
Br,
Manoj
Hi,
This is the default behaviour of rest/soap/http/ws adapter you need to use udf where you access attachmentid and assign it back via outputattachment method. But i doudt if again the receiver soap adapter causes nusiance.
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Manoj
After comparing it with ongoig PI flow i see below differences and similarity.
1. Message header is same in pi/po in msg monitirng.
2.Attachment name in PI is attachment.jpg whereas in PO it is the link: CID:xxxx@sap.com
3.in PI/PO msg monitoring PI:
Payload in PI: Content Type: application/xml;charset=utf-8; charset=UTF-8
Payload in PO:Content Type: application/json; charset=utf-8
what can be the reason of the POint 3.
Thanks
Yes here it is
<SOAP:Body>
<sap:Manifest xmlns:sap='http://sap.com/xi/XI/Message/30' xmlns:xlink='http://www.w3.org/1999/xlink'><sap:Payload xlink:type='simple' xlink:href='cid:payload-a351105983d611e7c4160000018ad26a@sap.com'>
<sap:Name>MainDocument</sap:Name>
<sap:Type>Application</sap:Type>
</sap:Payload><sap:Payload xlink:type='simple' xlink:href='cid:payload-a351105a83d611e7bea00000018ad26a@sap.com'>
<sap:Name>cid:att-a34ead2083d611e790e60000018ad26a@sap.com</sap:Name>
<sap:Type>ApplicationAttachment</sap:Type>
</sap:Payload>
</sap:Manifest>
</SOAP:Body>
Currently i dont have access to 7.5 SP07 nor with Advantaco rest adapter so i cant help you directly hence i am testing with SOAP adapter with attachment and cross checking with your REST scenario.
I can see the attachment name in soap mainfest paylaod . Don't you see the actual attachment name being passed in soap mainfest ? If not then try adding MulitPartHeaderBean in your sender Rest channel as first module and then provide that screenshot.
Br,
Manoj
User | Count |
---|---|
58 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.