on 02-18-2014 12:36 PM
Hi Sdner,
We have a requirement to pick 2 files from Source FTP server folder.
source is FTP server folder we need to pick 2 files (1= abc.xml & 1=abc.tif)
but there is one condition
we don't have any file names known.
what we need to do is 1st read the .xml file's available and if suppose tht .xml file name is abc.xml then search for abc.tif file and process both the files
here .tif is image file (For every abc.xml there will be 1 abc.tif file)
xml file will be the main payload
where as .tif file needs be sent as an attachment
Target is Proxy
After analyzing this requirement may be Adapter Module Development can be the best solution for this.....so I am expecting code and step by step approach for the same.
even if we have better solutions please let me know.
Hi,
If you are trying to pick the file from PI staging area (PI local ftp server) then at filename give *.xml and check the additional files tab and give *.tif .
If you are connecting to some source third system then pick the files and drop it in your PI staging area then use the above said second interface.
Regards
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran - Have a look at the below module. I hope you can extend it to FTP
Hi Kiran,
We do have a similar kind of requirement where in first interface will pick all .xml and .tif files irrespective of checking pairs and place all the files in PI local file server ,now second interface will pick only .xml and .tif combination files (won't pick when combination not there) .
Above is the simple solution if you are not ok with that then look for unix script which will pick the files with combination and places it in PI local file server ,from there 2nd interface will take care.
Regards
Venkat
Hi Kiran - In your case the trigger file is nothing but *.xml.
So whenever there is an xml file available you channel would pick and with th help of your module, try to reach the corresponding .tif file.
else-
Create a file to proxy interface for processing xml files(main payloads)
Crate another pass through interface and dump all your *.tif files on to ECC mount(NFS)
You can easily access the relavent tif files in your proxy code.
So whenever there is an xml file available you channel would pick and with th help of your module, try to reach the corresponding .tif file.
==> Yes this is the solution for my case......I was expecting the CODE from the beginning.
else-
Create a file to proxy interface for processing xml files(main payloads)
Crate another pass through interface and dump all your *.tif files on to ECC mount(NFS)
You can easily access the relavent tif files in your proxy code.
==> This is not the solution for my case I need to pick only the pair's of .xml & .tif......then only process to ECC
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.