cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP to File scenario

Former Member
0 Kudos

Hi experts,

I have the following scenario and I don't know if the File Adapter allows me to do.

- We have a system that execute Webservices.

- On the other hand, we have a file system that manages a files to consult.

We need to call the Webservice, and the response of this, has to be the data that contain the file.

I know that the File Adapter in mode Receiver is for writing files. How can I make it for reading?

¿Any ideas for implement the scenario? ¿BPM? ¿File Adapter in mode Sender with file name variable?...

Thanks,

Jose.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Thank you all for the help,

It's essentially a synchronous scenario.

Webservice Client -


>(SOAP Sender Adapter) XI (File Receiver Adapter) -


> FileSystem

But, I know that the goal of the File Adapter in Receiver mode is to write files and not return a response.

We need is that the File Adapter return the contents of this file and mapping with the response to Webservice Client.

Thanks,

Jose.

xinjiang_li
Active Participant
0 Kudos

Hi,

You can do it with soap to abap proxy scenario.

In your abap side,you can call relavant ftp function to get the file content.

So,both the outbound interface and inbound interface are sync.

Former Member
0 Kudos

Thanks xinjiang li,

But, the communication with the file system can not be monitored by a Communication Channel. ¿no?

If there are errors in reading the file?

Thanks,

Jose.

Former Member
0 Kudos

Based upon what i understand of your requirement

>>How can I make it for reading?

This can be done by a File lookup.

Please explain your scenario a bit more so that we can be of more help.

Thanx

Aamir

Former Member
0 Kudos

Hi Jose

File adapter in sender mode can read a file

BPM will allow 1. get data from webservice. 2. deliver file to a system 3. read this file and deliver file to another system.

We need to call the Webservice, and the response of this, has to be the data that contain the file.

My understanding is you want to do

1. Invoke the webservice call to get data from source system

2. Deliver the file to a system which need file to consult

with this you also need a file to be generated based on the webservice call right ?

Thanks

Gaurav

Former Member
0 Kudos

Hello Jose,

Yes this can be possible to use file adapter as sender. But for that you need to map the data in particular XML format so that it could be understandable by the message mapping when you want to use it for target message.

For example if the data is EDI, then you need to pass this data in X12 format to the XI and use the same format in the message mapping. So when it is picked by the PI, it knows how to treat that data.

Thanks

-Kulwant

Former Member
0 Kudos

Your description does not make up a complete end to end scenario.

However, it look like this is a part of complete scenario:

  • You will need a sender system that send request message.

  • You will need a BPM to receive above message.

  • BPM will call webserive to get the response.

  • Out of the BPM: BPM will forward the response to integration engine

  • Integration engine will execute another mapping program: it will have UDF to open your file and read the file.

Comparing the result with your response from webservice.

If your file is located in the system other than application server, you will code your UDF like ftp client.

Check Java API for that type of use.

  • Based on the comparation, you can do whatever you want, or forward message to another system...

Regards !

Liang