Skip to Content

Converting file coming in main payload as attachment with SOAP channel in synchronous response flow.

Hi Experts,

I have developed a synchronous interface from ECC(Proxy) <--> PI 7.31(Single Stack) <--> 3rd party system(connected with SOAP over HTTPS), which is working fine as of now.

Request:
Message flow is like, ECC(SOAP over XI) -> PI(mapping exists) -> SOAP(https), after hitting the URL in receiver SOAP channel, a file will be coming back as main payload in response.

Response:
file coming as response will be delivered to ECC proxy as main payload. No mapping in response flow exists.

Requirement is like need to convert this file coming as main payload in response is to convert as attachment and send it to ECC.

Any suggestions in completing this requirement to convert the file in mainpayload to attachment only in response flow.?

Regards,
Raj.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 24, 2017 at 04:21 PM

    Hi Raj,

    You can make use of interface OutPutAttachment and create a required attachement for proxy.

    I believe you need to populate some fields along with attachements too.

    Br,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Raj,

      As described above if you want to make the mainpayload as attachment then you need to implement the OutPutAttachment in your java mapping.

      In case if you had a mainpaylaod+some attachment coming in response then you may would have used payloadswapbean , But as you have only mainpayload to convert this into attachment you need to go for attachment and also you need to have mainpaylod with some data like the attachment name ow whatever.

      Br,

      Manoj