cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

manoj_khavatkopp
Active Contributor

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

0 Kudos

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.

manoj_khavatkopp
Active Contributor
0 Kudos

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