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.  Starting with TN and EDI - Sending documents

    Posted Tue February 05, 2008 05:41 PM

    Hi,

    I am just starting out with EDI and I had some basic questions regarding TN etc.

    I have EDI and TN packages on 6.5. IS.

    1. As per the TN Users guide, for flat file documents, you need to have a gateway service custom coded to handle flat file documents. Do you still need this if the EDI package is installed? Since the EDI users guide dont talk about the need for a gateway service at all.

    2. What is the best way to make a test service to send an EDI document to the TN? I wrote an HTTP service that seems to work, but that needs the gateway service as a receiver. Is there another way to do it without the need for the gateway service?

    Thanks.


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Starting with TN and EDI - Sending documents

    Posted Tue February 05, 2008 06:45 PM
    1. For EDI files, a gateway service is not needed. Though I usually advise that you should have one and not allow external apps/partners to post directly to TN receive. For other flat files, a gateway service is a must.

    2. The EDI module has an admin page to post sample/test documents. Look in the left menu in IS Administrator and follow the appropriate links.


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Starting with TN and EDI - Sending documents

    Posted Tue February 05, 2008 07:51 PM

    Thank you Reamon!!.

    I agree…on having a gateway servive, hence I was trying to have one such service. But how can you write a gateway service that publishes the envelope, group and document to TN? When I tried to publish the Envelope using the wm.tn.doc.ff.routeFlatFile service, I get the following error:

    com.wm.app.tn.err.EXMLException: wm.tn.doc:recognize com.wm.app.tn.doc.BizDocTypeException Failed creating EDI envelope doc type. Cannot handle null object [EDIFTN.000010.000202] com.wm.app.tn.doc.BizDocTypeException: Failed creating EDI envelope doc type. Cannot handle null object [EDIFTN.000010.000202] at wm.b2b.editn.EDIEnvelopeDocType$EnvelopeStatus.getPipelineVars(Unknown Source) at wm.b2b.editn.EDIEnvelopeDocType.createEnvelope(Unknown Source) at com.wm.app.tn.doc.BizDocTypeReg.recognizeAndCreate(BizDocTypeReg.java:505) at wm.tn.docimpl.recognize(docimpl.java:701) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at

    Before calling the wm.tn.doc.routeFF service, I pass TN_parms with “X12 Envelope” as the DoctypeName and also the sender and receiver DUNS.

    Am I doing something wrong? Is there a better way to do this?


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Starting with TN and EDI - Sending documents

    Posted Tue February 05, 2008 08:14 PM

    Don’t set TN_parms for EDI docs. It isn’t necessary.

    Place the EDI string into a var name edidata and call wm.tn:receive. No need to use routeFF.

    For EDI, ignore the flat file documentation. Follow the info in the EDI guides. Where the TN and EDI docs differ, follow the EDI for TN material in the EDI docs.


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Starting with TN and EDI - Sending documents

    Posted Tue February 05, 2008 08:46 PM

    Thanks again, Rob!! That recommendation is priceless.

    I was getting confused which instructions to follow for EDI - Flat file or regular TN.


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 6.  RE: Starting with TN and EDI - Sending documents

    Posted Tue February 05, 2008 08:46 PM

    This service to be used only when routing flat files to TN
    wm.tn.doc.ff.routeFlatFile service (it needs TN_Parms)

    Normally for routing EDI, you can either use wm.tn.doc.xml:routeXML or wm.tn:receive and make sure you have the edidata var in the pipeline as Rob mentioned above before you invoke the service that posts to TN.

    HTH,
    RMG


    #webMethods
    #edi
    #Integration-Server-and-ESB