cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP-PI-File scenario: synchronous file pickup possible without ccBPM?

Former Member
0 Kudos

Hi,

is it possible that I pick up a file synchronous without usage of ccBPM? What I'd like to achieve: I'd like to send a filename in the body of a SOAP request. Depending on that filename, I'd like to collect that file on the filesystem and send it back as the message body of the SOAP response. From my understanding, the receiver file adapter can just write files. In my scenario, I'd need the receiver file adapter for picking up a file (which is normally a sender file adapter).

Anybody with a good hint how to achieve something like that?

Best regards

Holger

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Holger,

One option would be to go for a file lookup as explained in this wiki

https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/file%252blookup%252bin%252budf

except that you would have to read the whole file instead of a part of the file as explained in the wiki.

However this method is not a good practise for the following reasons.

1. The task of the adapter engine is being pushed into the integration engine, this is not a standard practise

2. Maintainig username password inside a mapping is not advisable especially during transports

Former Member
0 Kudos

Hi Bharath,

interesting, but as you've described maybe not the best solution. But I'll keep it in mind...

Best regards

Holger

Answers (2)

Answers (2)

PratibhaK
Participant
0 Kudos

Hi Holger,

You wrote:

I'd like to collect that file on the filesystem and send it back as the message body of the SOAP response

Were you able to acheive this?

Regards,

Pratibha.

Former Member
0 Kudos

Hi colleagues,

I am facing a similar requirement.

Provide file content via synchronous Webservice (trigger)

Webservice (sender) <-> PI <-> File (receiver)

Is there a possibilty to use File/FTP Adapter, which is normally asynchronous by default in such a scenario e.g. by using a SAP adapter module.

Or are there any other standard PI functions to meet this requirement.

Otherwise a specific Webservice have to be created which will read the file and return it´s content within the webservice response. Do you see a possibility to deploy such a service on the PI Java server?

Due to development effort I would prefer a standard function instead of creation of specific Webservice.

Thanks for sharing your thoughts.

Best regards,

Jochen

sugata_bagchi2
Active Contributor
0 Kudos

Hi Jochen,

you can use Request Reponse bean and Responseoneway bean for this . these are standard SAP modules. In your case it will be an Sync -ASync scenario.  check this link -

http://help.sap.com/saphelp_nw04/helpdata/en/45/20c210c20a0732e10000000a155369/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/45/20cc5dc2180733e10000000a155369/content.htm

Thanks

Sugata B

former_member307485
Active Participant
0 Kudos

Hi Holger,

You can go for a SOAP to SOAP synch scenrio and send back the file obtained in the form of attachment in the SOAP response.

REgards,

Divya

Former Member
0 Kudos

Hi Divya,

how should I pickup the file in your case?

I've a SOAP-PI-File scenario. I'm not able to create a service provider in the receiver system picking up the file and publishing the scenario as a webservice, therefore I cannot use SOAP in the receiver channel.

Best regards

Holger