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.