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.  pub.client:ftp problems using put

    Posted Fri February 02, 2007 02:50 PM

    [SIZE=1]I have concluded that there is a problem with the ‘put’ java routine which is called from ‘ftp’ flow within WmPublic, pub, client.
    I have been investigating theproblem via BC Developer and using a local ftp instance (which is on the BC server).
    The symptoms are:
    I can happily do an ‘ls’ to list the ftp directory contents, either from the root of the ftp server of from a given sub-folder (which is passed as ‘dirpath’).
    However as soon as I select the ‘put’ command as an input parameter, I can’t seem to get anything working, even though the file which is being uploaded is available on the local file system (and indeed visible in the correct place on the server).
    I have been able to do the file ‘put’ manually via ftp quite happily.
    Does anyone have examples of having used this Java routine successfully before?

    We are running SAP Business Connector 4.7
    [/SIZE]


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


  • 2.  RE: pub.client:ftp problems using put

    Posted Fri February 02, 2007 02:54 PM

    I am not sure I understand you quite right.

    Are you saying that the pub.client.ftp:put service is not working as expected?

    Can you please elaborate your problem?


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


  • 3.  RE: pub.client:ftp problems using put

    Posted Fri February 02, 2007 02:59 PM

    Yes.
    I have been running the ‘ftp’ flow step-by-step in BC Developer. When I select ‘ls’ as the command, there is no problem. It lists the files on the ftp server correctly, including when a dirpath is specified.
    However, when I change command to ‘put’ and have a localfile and remotefile specified as parameters, the flow fails at the ‘put’ step.


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


  • 4.  RE: pub.client:ftp problems using put

    Posted Fri February 02, 2007 05:53 PM

    What is the error message? How exactly does it fail? What are the input parameter values you are specifying?


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


  • 5.  RE: pub.client:ftp problems using put

    Posted Fri February 02, 2007 07:06 PM

    Does your wM ftp user have enough permissions to put the files on that remote dir??pls make sure with respective admin.Also what is the exact error message that is thrown by put service (getlastError etc…)??

    HTH,
    RMG


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


  • 6.  RE: pub.client:ftp problems using put

    Posted Mon February 05, 2007 12:05 PM

    The error message was ‘file not found’. However, I have since worked out that the ‘localfile’ parameter defaults to the SAP BC server directory, not the local file system default that you get to when doing a manual ftp. When I put in a path and filename, I the ‘ftp’ flow with ‘put’ does work as expected. Sorry for leading you up the garden path with this one!


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


  • 7.  RE: pub.client:ftp problems using put

    Posted Mon February 05, 2007 12:06 PM

    Yes, no file permission problems. I have now made some progress however…
    The error message was ‘file not found’. However, I have since worked out that the ‘localfile’ parameter defaults to the SAP BC server directory, not the local file system default that you get to when doing a manual ftp. When I put in a path and filename, I the ‘ftp’ flow with ‘put’ does work as expected. Sorry for leading you up the garden path with this one!


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