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.  Gatway Service

    Posted Tue June 05, 2007 05:26 AM

    hai every body,
    can any one help me in writing a gatewayservice to send a flatfile to TN


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 2.  RE: Gatway Service

    Posted Tue June 05, 2007 06:39 AM

    Hi durgaprasad,

    1. invoke pub.file.getFile service to get the flatfile data from any location and load as “stream”

    2. now your flatfile data will be the stream format.

    3. Create “TN_parms” document in pipeline, inside that create a variable,
      DoctypeName
      SenderID
      ReceiverID
      $contentType

    set document type name as your flat file TN document name and sender duns value, receiver duns value and content type as “application/x–wmflatfile”

    1. invoke wm.tn.doc.ff.routeFlatFile (this is called gateway service) and map stream output to ffdata and map TN_params document to this service input.

    2. and now run your service, it will route the flatfile document to TN and it will recogized by your doctype name, sender and receiver.

    Hope this helps!

    Thanks & Regards,
    ArulchristhuRaj


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Gatway Service

    Posted Tue June 05, 2007 06:40 AM

    content type is application/x–wmflatfile


    #Integration-Server-and-ESB
    #webMethods
    #B2B-Integration


  • 4.  RE: Gatway Service

    Posted Fri June 29, 2007 03:36 AM

    Hi,

    The reply you have give is when you read the file and load as data. Suppose if the flat file is posted to you through Http(s) post how do you actually map the FFDATA for the routeFlatFile service.


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 5.  RE: Gatway Service

    Posted Sat June 30, 2007 01:06 AM

    If the data is received via HTTP/HTTPS, it would be the same process described previously in this thread by ArulchristhuRaj, except that step 1 would be different.

    If the HTTP/S message has a contenttype recognized by IS as a flat file (i.e. listed in the tn.ff.contenttypes property), then the content will already be in a stream named ‘ffdata’, which is what wm.tn.doc.ff.routeFlatFile expects.

    If the message has a different contenttype, you will need to get the content into an InputStream with a name of ‘ffdata’.

    If you are writing Flow services, you can use the pub.io services to work with streams.

    m.


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB