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.  Parsing Flat File

    Posted Wed May 28, 2003 03:14 PM

    Hi,
    We are doing a project where we receive a PO in flat file format from a buyer. It is not an EDI format, but a custom one. What would be the best way to map this flat file to the xml format that exist in our system? We have the details of the flat file and it is a fixed length format document.
    We are running IS 4.6 under Windows 2000.
    Thanks in advance.


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


  • 2.  RE: Parsing Flat File

    Posted Wed May 28, 2003 03:42 PM

    Hi Mark
    You can use the EDI Adapter to convert your flatfile data into a record structure and then map this to yours xml record structure.
    Just ctrate a template for the flatfile and then use EDI Adapter service. For help in template creation just look at the EDI UserGuide.
    Hope this will help.


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


  • 3.  RE: Parsing Flat File

    Posted Wed May 28, 2003 06:36 PM

    Normally we have to download the schema for EDI files. But the file that we will be receiving is not in EDI format. It is an independent format. Is it possible to do this using IS 4.6 or do I need to use version 6.0?
    Thanks


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


  • 4.  RE: Parsing Flat File

    Posted Wed May 28, 2003 06:58 PM

    You would download schema for EDI Standard files (X12, EDIFACT, etc…) but for your own custom file structures you need to create a Flat File Template as documented in the wm EDI Users Guide.
    Follow these 2 links for more info.
    [url=“wmusers.com”]wmusers.com
    [url=“wmusers.com”]wmusers.com

    Good Luck!


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


  • 5.  RE: Parsing Flat File

    Posted Wed May 28, 2003 08:04 PM


  • 6.  RE: Parsing Flat File

    Posted Fri June 06, 2003 08:17 PM

    Actually, its alot easier then that…
    do the following.

    getFile…gets flatfile from operating system
    bytesToString… will take the body record and convert to string
    tokenize… will provide a delimiter separated file to loop over a space
    LOOP over /valueList…will loop over the string,insert the delimiter
    tokenize…this will add a comma between fields
    recordToDocument …this will build a record structure…set encode to true and generateRequiredTags to true…

    Thats it…


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