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.  FTP file polling and transport query

    Posted Mon March 06, 2006 10:57 AM

    I have added a Flat file in the polling directory and called a service for the same … …I would like to know as to how does one read the contents of the file in the service or How do i read the files contents from the service ?What are the file contents passed in the pipeline for the service being called from the transport ???

    Would Appreciate your help …

    regards
    Dhiraj Shetty


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


  • 2.  RE: FTP file polling and transport query

    Posted Mon March 06, 2006 04:59 PM

    Dhiraj,

    Your polling service input should be ffdata(object stream)for handling flatfiles via filepolling mechanism or ftped to a service.The flow steps for reading/parsing inbound flat file are pub.io:streamTobytes(map ffdata object to input),
    pub.string:bytesToString(extracts flatfile string),
    pub.flatfile:convertToValues(parse the flatfile using FFSchema that you have created depends on the flatfile layout).

    HTH
    RMG


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


  • 3.  RE: FTP file polling and transport query

    Posted Tue March 07, 2006 09:48 AM

    Hi RMG,
    My ffData input in the pipeline is BufferedInputStream and after going thru your reply i implemented the same but i get a ClassCastException when converting into pub.io:streamTobytes …
    Please guide …

    regards#
    Dhiraj


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


  • 4.  RE: FTP file polling and transport query

    Posted Tue March 07, 2006 10:02 AM

    Hi RMG,
    Thanks for your valuable input …There was an error in Naming my ffData variable (as against ffdata ) … Rectified the same …Now its working fine …

    regards and Cheers
    Dhiraj Shetty


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


  • 5.  RE: FTP file polling and transport query

    Posted Tue March 07, 2006 02:55 PM

    yes ffdata object stream is the way to go,anyways it was good to know that you have rectified.

    HTH,
    RMG


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