webMethods

webMethods

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.  How to send flatfile to TN

    Posted Thu June 14, 2018 04:52 PM

    Hi Team,

    I am having one doubt how to send ff(stringlist) to TN.
    Do we have to convert the string list to object??
    How to go about it.
    Here is the full flow

    CSV—> FF conversion

    I will be getting the csv file and will be converting to ff

    FLOW :

    WE WILL REMOVE THE HEADER AND TRAILER IN THE CSV FILE.
    I HAVE ALREADY WRITTEN A LOGIC ON PROCESSING AND GETTING THE OUTPUT AS STRING LIST
    I HAVE TO SEND THIS STRING LIST(FF) TO TARGET VIA TRADING NETWORKS

    Sample I/p :

    20180517,738,
    A,CN73YM3,JAXF1,CXIF,C5028,60010181,20180517,20180517,20180518,FALSE,Z4G4,1,18.5,0
    A,CN2WUYM,JAXF1,CXIF,C5028,60010181,20180517,20180517,20180518,FALSE,Z4G4,1,18.5,0
    20180517,738,2,

    How the o/p should be :

    $$NEWITEM
    A CN7 3YM3 JAXF1CXIF C5028 60010181 2018051 20180 517 20180518 FALSE Z4G 4 1 18 .5 0
    A CN2 WUYM JAXF1CXIF C5028 60010181 2018051 72018 0517 20180518 FALSE Z4G 4 1 18 .5 0

    Attaching the logic I have written.
    Please let me know how to sned the ff via Trading networks?(Do I have to convert the string list to bytes or object and send to TN using TN service???)
    Currenlty I have the string list like above mentioned.

    ?
    SS01.JPG


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


  • 2.  RE: How to send flatfile to TN

    Posted Wed June 20, 2018 01:51 AM

    Use this wm.tn.doc.ff:routeFlatFile for more details refer TN BIS guide.


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


  • 3.  RE: How to send flatfile to TN

    Posted Wed June 27, 2018 06:29 AM

    HI Preethi Ganesh,

    As mentioned above you have to use wm.tn.doc.ff:routeFlatFile but while passing inputs to the service, you have explicitly hardcode TN_param values such as sender id , receiver id and doctype for the service.

    TN doesnt recognize flatfile since its doesnt contains any structural information unlike xml. So we have explicitly pass sender id, receiver id and doctype as TN_params as input to the service. You have create wrapper service calling routeFlatfile service as gateway service.

    Thanks,
    Arun


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