on 03-06-2009 7:19 AM
Dear all,
I have the following requirement:
The end user send a request via the proxy to XI, within the request parameters there is a file name, and the XI need to retrieve the file content from a ftp server with this specified file name, how can I achieve this?
According to my understanding, the file receiver adapter can only write the files to the server.
Thanks and regards,
Bean
Dear Bean,
This can be achieved using a BPM...
you will have to use Two parallel receive steps within a fork...
1. 1st receive step :This will bring the data from the proxy
2. 2nd receive step :according to pipeline step before this step would be executed interface determination would be called withini that you can put a mapping wherin the source and target message type would be as follows
a. source message type ; the file structure that is going to be picked from ftp structure
b.target message type : same structure as source except at top you will add "filename" field
(you cna find on forum how we can get a fielname in the mapping ..in case you dont knw )
3. now you can define correlation on the field "fielname" in both the receive steps provide the hirearchy and structure of data coming from both file and procy are same...
4.. after corelation you can put any steps like transformation ( as you want)
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This requirement is not possible with XI File Adapter(Sender), since We cannot change FileName convention dynamically for file adapter in sender mode.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
with fixed file name you can only pool one particular file which is against your requrirement.
A work around would be you need one more application in between such as a webserver hosting a Servelt, which will take request (which contains FileName from Proxy) from XI and reads the specified file from FTP directory and passes the read file stream as response back to XI. Now it is up to you to where you want post the received response.
Thanks,
- Gujjeti.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.