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
  • 1.  Basic FTP setup

    Posted Wed June 08, 2005 04:30 PM

    I am trying to FTP a .txt file to an IS 4.6 SP2 server.

    I have created a flow and am able to log on, change directories and ftp the file to the service (using BINARY). The flow has as input a *object (same name as file being ftp’d) and the first step in the service is streamToBytes.

    However, I keep getting ‘stream is a required field’ error.

    I am sure it us something simple but just do not see what is wrong, any help is appreciated.

    Thanks in advance,
    John


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


  • 2.  RE: Basic FTP setup

    Posted Thu June 09, 2005 12:53 AM

    I believe the object you see in the pipeline is a byte array of the entire file, not a stream.


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


  • 3.  RE: Basic FTP setup

    Posted Thu June 09, 2005 03:06 PM

    OK, I got some advice from Chris Linton (thanks).

    What I had to do in the flow was define an input to the flow as a string with name ‘contentStream’. Then, in the flow itself, use that value as input to streamToBytes, then use bytesToString.

    I also included getTransportInfo for the file name.

    Works fine for text files…

    Thanks to Chris


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


  • 4.  RE: Basic FTP setup

    Posted Thu June 09, 2005 04:49 PM

    I just voted my post as a 1 star since I was waayyy off-base. Glad you were able to get it resolved. And thanks for posting the resolution for posterity.


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