my application’s webMethods code is using the built in FTP service pub.client.ftp.ls to simply list the number of files on a remote ftp server after pub.client.ftp.login & pub.client.ftp.cd.
During runtime, the login & cd services run fine with success. However, it fails at pub.client.ftp.ls service run with error 550 Arguments too long error. This should be when the remote ftp server has too many files. But infact, there are not more than 450 files in the remote ftp server to list. When i place fewer files (say 100-150) in the remote ftp server the pub.client.ftp.ls runs fine.
What could be the issue in listing 450 files & how to increase the capability to handle more number of files in thre remote ftp server.
Note: when i login using ftp command thru unix to the same remote ftp server & directory, it lists the 450 files properly with no error.
Generally the error depicts that either the file name which he is listing is big or file size itself.
There should be a threshold defined for FTP server files list.
I saw it doesn’t give problem to list 1000-10000 files at one time,
@saptirishi Please provide more error description.