Skip to Content
0

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

Jul 24, 2017 at 03:52 PM

84

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Manoj K Jul 24, 2017 at 04:21 PM
1

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Manoj,

In my response flow of synchronous interface, there is no mapping exists and we are sending the file directly in the main payload to ECC using proxy connection, currently.

Our requirement is not to bother about the payload content inside file( it might change from file to file), just need to send the file to ECC as attachment is sufficient.

Any specific suggestions please to handle this case..?

Regards,
Raj.

0

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

0