cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Attachments how to configure - How to extract attachments ?!

Former Member
0 Kudos

Hi Gurus

We have below integration scenario to integrate internal application to the external vendor through web-services.

Internal Application(sync web services) ---> SAP PI ----> External Vendor (sync web services)

Here are the question I would like to seek your help:

  1. How do we configure SOAP attachments in a synchronous response interface. Is there any need to add/section or field to hold attachments?!
  2. In a synchronous interface apart from getting the response which includes the attachments - can we have the attachment extracted and put on a folder directory in PI apart from sending response back to the source ?!
  3. For, the web service which use certificates - where & how do we configure certificates - Is there any additional config we have to in the receiver agreement of the receiver SOAP communication channel.
  4. Is it possible to save the response SOAP XML - so as to archive it on a file directory- as we have a request to save the response even though it is going back to the Sender.

Thank you for your help & patience in reading through my above questions & will look forward for your responses.

Thanks again,

Ritu

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Ritu,


How do we configure SOAP attachments in a synchronous response interface. Is there any need to add/section or field to hold attachments?!

Already answered by . However since you need to save the attachment for question 2, you need to check Read Attachments in your operation mapping.


In a synchronous interface apart from getting the response which includes the attachments - can we have the attachment extracted and put on a folder directory in PI apart from sending response back to the source ?!

Yes, you need to use a UDF to read the attachment. As for saving this to a PI folder directory, this is also possible by invoking IO commands in your UDF. This approach is not recommended since it will create side effects.


For the web service which use certificates - where & how do we configure certificates - Is there any additional config we have to in the receiver agreement of the receiver SOAP communication channel.

There are two types of ssl authentication, with and without client authentication. Without client authentication will require you to install the certificates in the NWA trusted keystore. With client authentication is already described by the post above.


Is it possible to save the response SOAP XML - so as to archive it on a file directory- as we have a request to save the response even though it is going back to the Sender.

Same answer as question 2 except that you will read the main payload in this case.

Regards,

Mark

Former Member
0 Kudos

Thank you for your quick response!! Mark

Thank you,

Ritu

former_member186851
Active Contributor
0 Kudos

Hello Ritu,

You can refer the below link to get an idea.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/12/26/handle-soap-with-attachment-in-sa...

I guess yours will be the reverse case of this.

Answers (1)

Answers (1)

PriyankaAnagani
Active Contributor
0 Kudos

Hi Ritu,

Below is the Info.

1. In the SOAP Receiver Communication channel select "Keep Attachments".

3. If the WebService Expects a client certificate, then in NWA->Certificates and Keys, you need to create Keystore View and load the certificate in the view. And then in SOAP receiver channel select "Configure Certificate Authentication" and provide the Keystore view name and certificate name(keystore entry).

2&4 - You may require BPM for this as the synchronous messages can not be split into multiple messages to send response payload to both file and proxy.

Best Regards,

Priyanka

Former Member
0 Kudos

Thank you for your quick response!! Priyanka

Thank you,

Ritu