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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Flat File interface with Outlook.

    Posted 09/24/03 07:53 AM

    I am trying to send a flatfile via outlook e-mail. I am running into an error that basically states the the flat file content can not be null.

    I noticed in the webMethods Flat file Schema guide for version 6.0.1 (page 81) it states:

    “Set the email�s Content-Type header to ‘application/x-wmflatfile.’”

    can anyone give me a hint on how to do that?


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 2.  RE: Flat File interface with Outlook.

    Posted 09/25/03 07:09 AM

    email receive: See ISAdministratorGuide.pdf

    Go to Admin webPage > Security > Ports > Add Port
    * select webMethods/Email
    * select default package to receive emails (or leave default WmRoot)
    * enter email account info in Server Information section
    * enter name of Default service eg: MyFolder:MyService
    * email will arrive in pipeline as an object called “contentStream”
    * use createMimeData to convert to IData object
    - flow example
    pub.mime.createMimeData (map contentStream to input)
    pub.mime.getBodyPartContent (part 0 = header, 1 = attachment)
    pub.io.streamToBytes
    pub.string.bytesToString
    pub.flow.savePipelineToFile
    etc…

    * See services in WmSamples mime for attachment handling
    

    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Flat File interface with Outlook.

    Posted 09/25/03 07:13 AM

    Some more info:

    * You may need to add the file extension to lib/mime.types
    * If using MS Outlook Express Client to send email: go to Options > Send and set the attachment type to "plain text"
    

    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 4.  RE: Flat File interface with Outlook.

    Posted 09/25/03 09:21 AM

    I had already created the port…

    But your second message did the trick… all I had to do was add a line:

    application/x-wmflatfile csv in the mime.type file, restart the server and now it works. Amazing the documentation doesn’t include this step… Hopefully someone is listening.

    (I didn’t have to make any changes to my flat file flow as it works with an e-mail port or a file port)


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards