IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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
Expand all | Collapse all

pub.client.ftp:get

  • 1.  pub.client.ftp:get

    Posted Wed July 09, 2008 12:08 PM

    Hello Friends,

    We are using SAP Business Connector 4.7 to receive xml files from external FTP server. We can login with pub.client.ftp:login successfully. But we are unable to receive the XML File.
    Screencam

    Any suggestions or help will be appreciated.


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 2.  RE: pub.client.ftp:get

    Posted Wed July 09, 2008 04:16 PM

    When logging in to an FTP server, many often change the intial directory to a user-specific directory. Based on the error, the IS service is assuming that the current directory is the root (httpdocs) but that may not be the case, thus the relative path specified in the get is invalid.

    Try either an explicit cd before the get or an absolute path in the get.


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 3.  RE: pub.client.ftp:get

    Posted Wed July 09, 2008 04:24 PM


  • 4.  RE: pub.client.ftp:get



  • 5.  RE: pub.client.ftp:get

    Posted Wed July 09, 2008 04:45 PM

    What schould i write in dirpath?
    file is here [url]http://koekce.com/Output/file.xml[/url]

    if i wrote “Output” in dirpath then i get this error:
    An error occurred while tracing.
    com.wm.app.b2b.server.ServiceException: 550 Output: No such file or directory


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: pub.client.ftp:get

    Posted Wed July 09, 2008 05:03 PM

    Use an FTP client to determine the directory structure that you’re encountering. That will help you figure out what the path needs to be.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: pub.client.ftp:get

    Posted Wed July 09, 2008 05:19 PM

    Hello Raemon,
    thank you :slight_smile:
    “/httpdocs/Output” is the correct path.


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: pub.client.ftp:get

    Posted Thu July 10, 2008 03:37 PM

    Hello,
    we need to use the service Pub.xslt.Transformations:transformSerialXML to convert xml document into the IDoc xml (XSLT Mapping) but output from ftp:get is not xml stream. Which service should I take after pub.client.ftp:get to convert into xml stream?


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: pub.client.ftp:get

    Posted Thu July 10, 2008 05:01 PM

    That service can accept input in a number of ways. After the FTP get, you’ll have a byte array. Pass this to the “bytes” input of the transformSerialXML service. You wouldn’t use the “xmlStream” input in this case.

    Refer to the service documentation for details.


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 10.  RE: pub.client.ftp:get

    Posted Wed July 23, 2008 10:44 AM

    please check the path of the file , it should be methiod from the root directory and also that file should be saved in the server where web mehtods is running , not in local system.

    to convert xml values
    pub:xmlSrtirng to xmlNOde
    pub :xmlNode to document

    u can read values


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB