Skip to Content
avatar image
Former Member

Attachment issue in REST to SOAP

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

messagelog.png (137.5 kB)
sxmb-moni.png (30.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Aug 18, 2017 at 07:36 AM

    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

    multipartbean.png

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • avatar image
    Former Member
    Aug 18, 2017 at 07:54 AM

    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

    sxmb-moni-18.png

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 18, 2017 at 08:06 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 17, 2017 at 06:02 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

      soap.png (24.2 kB)