webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Retrieving FTP Code from ftp service

    Posted Wed August 10, 2005 08:33 PM

    Hi,

    I am doing FTP (put) operation and I need to get the value of returncode parameter in case of a failure. For example: If the file name is not allowed on the server I need the corresponding return code of 553 for it. I do get the error description by doing a getlasterror in my catch block but is there a way to get the FTP error code in case of failure please let me know

    Thanks

    Abhijeet


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: Retrieving FTP Code from ftp service

    Posted Thu August 11, 2005 05:07 AM

    Dear Abijeet

    If you are using the pub.client.ftp:put …Output has the following

    returncode Standard FTP protocol return code.
    returnmsg Standard FTP protocol return message.
    logmsg FTP log messages for the entire user session.

    Srini


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Retrieving FTP Code from ftp service

    Posted Thu August 11, 2005 05:10 PM

    Abijeet,

    Are you using pub.client:ftp(command=PUT) or pub.client.ftp:put?

    It will return errorcode and this will be in the pipeline unless if it gives 200 it is success and remaining all codes are failure.

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 4.  RE: Retrieving FTP Code from ftp service

    Posted Thu August 11, 2005 08:11 PM

    Hi RMG & Srini

    Thanks for your replies. I am using pub.client.ftp service but I don’t get the returncode value is not the error code. I get the previous successful command value. However, I am fine with just getting the error message now.

    Thanks

    abhijeet


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB