webMethods 6.1
I’ve read the FTP documentation and and as a rookie to this whole thing, I set up a service as shown below. I did a lot of inputs on the service in fields and didn’t utilize a configuration file (mainly because I don’t understand that yet). Below is the format that I did in Developer, followed by my question:
pub.client.ftp:login (first remote server - KLIPPER)
pub.client.ftp:cd
pub.client.ftp:ls
LOOP over /dirlist
pub.client.ftp:get
pub.string:bytesToString
MAP
pub.client.ftp:login (second remote server - JOHNSON)
pub.client.ftp:cd
pub.client.ftp:append
pub.client.ftp:logout (second remote server - JOHNSON)
pub.client.ftp:logout (first remote server - KLIPPER
My question concerns whether or not the above is the best way to handle this. I’m looking for some feedback on this. I’ve been struggling with this and am not sure if I did this correctly. I wasn’t sure if there needed to be two separate flows or if the above was good. Overall, I’m trying to get a file from KLIPPER, then login to the JOHNSON server, rename the file, and then append the file on the JOHNSON server.
Thanks.