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
Expand all | Collapse all

Submit EDI File to Trading Network

webMethods Community Member

webMethods Community MemberFri October 15, 2010 07:08 PM

webMethods Community Member

webMethods Community MemberFri October 22, 2010 06:04 PM

  • 1.  Submit EDI File to Trading Network

    Posted Fri October 15, 2010 02:44 PM

    Hello,
    I have a scenario, where I have to pick up an EDI file via filepolling and submit it to TN, where I can invoke a service to transform EDI to XML.
    Please help me in this scenario, having difficulties.


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


  • 2.  RE: Submit EDI File to Trading Network

    Posted Fri October 15, 2010 03:50 PM

    In the filepolling port configuration you can mention the Processing Service filed wm.tn.doc.xml:routeXML and also set the Content Type:application/EDIstream when ever the file available it will submit to TN and setup a TN processing rule (sender/receiver/document type) with action that invokes your custom service (that does all EDI parsing/mapping to XML structure etc…down stream processing)

    HTH,
    RMG


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


  • 3.  RE: Submit EDI File to Trading Network

    Posted Fri October 15, 2010 04:02 PM

    Hello,
    Thank you sir…I did not think of that…
    I would ask more if necessary…:slight_smile:


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


  • 4.  RE: Submit EDI File to Trading Network

    Posted Fri October 15, 2010 07:08 PM

    Try it and let the forum know.


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


  • 5.  RE: Submit EDI File to Trading Network

    Posted Mon October 18, 2010 01:33 PM

    It is working…
    but recommeded is to use a custom service, which includes routeflatfile in it…when working on live…


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


  • 6.  RE: Submit EDI File to Trading Network

    Posted Mon October 18, 2010 02:15 PM

    Yes that is the ideal way…And custom service should be using routeXML (for any XML/EDI routing to TN) not routeFlatFile it is only used for flat files routing…

    HTH
    RMG


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


  • 7.  RE: Submit EDI File to Trading Network

    Posted Mon October 18, 2010 02:19 PM

    Yes.
    Could you help in one more thing.
    I have converted EDI to XML, and want to write that XML doc to a file…
    Cannot find a service, and not comfortable with java service.
    Please if you could help.

    Suvigya


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


  • 8.  RE: Submit EDI File to Trading Network

    Posted Mon October 18, 2010 03:09 PM

    Do you have PSUtilities package installed? If not download it from Advantage site…

    There is one “writeToFile” svc available which you can use that.

    HTH,
    RMG


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


  • 9.  RE: Submit EDI File to Trading Network

    Posted Wed October 20, 2010 04:17 PM

    Hello Sir,
    I want to ask about the different EDI qualifiers, which are there in ISA envelope.
    And can I accept Order 850 through file polling to simple services? as it is giving me error of “Found no valid records”.

    Thanks and Regards
    Suvigya


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


  • 10.  RE: Submit EDI File to Trading Network

    Posted Wed October 20, 2010 04:34 PM

    Here are the few qualifiers used in the X12 and EDIFACT world respectively:

    01 X12=Duns, EDIFACT=Duns
    02 X12=SCAC
    03 X12=FMC,
    04 X12=IATA, EDIFACT=IATA
    05 EDIFACT= INSEE
    07 X12=GLN,
    08 X12=UCC Comm ID, EDIFACT= UCC Id
    09 X12=X 121 CCITT, EDIFACT = Duns with 4 digit suffix
    10 X12=DoD Activity Address
    11 X12=DEA
    12 X12=Phone, EDIFACT=Telephone Number
    13 X12=UCS
    14 X12=Duns Plus Suffix, EDIFACT=EAN
    15 X12=PAS of Canada Code
    16 X12=Duns Number with 4-char suffix
    17 X12= ABA routing number
    18 X12=AAR Std Distribution Code, EDIFACT=AIAG
    19 X12=EDICA Comm Id
    20 X12=HIN
    21 X12=IPEDS
    22 X12=FICE, EDIFACT=INSEE
    23 X12= NCES
    24 X12=ATP
    25 X12=ACT, Inc. 4-digit Code postsecondary institutions
    26 X12=Statistics of Canada list of postsecondary institutions
    27 X12=HCFA carrier
    28 X12=HCFA Fiscal Intermediary
    29 X12=HCFA Medicare provider
    30 X12=US Federal Tax Id, EDIFACT=ISO 6523 id
    31 X12=IAIABC Jurisdiction id plus 4, EDIFACT=DIN
    32 X12=US Federal Employer Id (FEIN)
    33 X12=NAIC code, EDIFACT=BIA

    Are you getting the error while parsing in convertToValues step? Did you set the correct EDIFFSchema and mapped the edidata (ST level string)?

    HTH,
    RMG


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


  • 11.  RE: Submit EDI File to Trading Network

    Posted Wed October 20, 2010 04:37 PM

    Hello,
    Yes, I am getting error while parsing through convertToValues
    and I have mapped edidata, and given right schema, that is …850


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


  • 12.  RE: Submit EDI File to Trading Network

    Posted Wed October 20, 2010 06:36 PM

    Check the edidata you are passing and make sure it is in correct format (includinig delimiters etc…)


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


  • 13.  RE: Submit EDI File to Trading Network

    Posted Wed October 20, 2010 07:26 PM

    Sir,
    There was a fault in edidata…I corrected it.
    Now service is working, but when debugging it with save and restore pipeline, then errors come up as Delimiters not Set…
    please help me, attatched is the input file.


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


  • 14.  RE: Submit EDI File to Trading Network

    Posted Wed October 20, 2010 11:04 PM

    In that case you can modify the pipeline delimiters part and parse it…


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


  • 15.  RE: Submit EDI File to Trading Network

    Posted Thu October 21, 2010 11:52 AM

    Sir, I did this thing also, but still saying “Found no valid records”.
    I had hard-coded the delimiters from the input file.
    I have attatched the input file here, please help me with the delimiters, if I might be wrong.
    Thank you.
    850.txt (3.04 KB)


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


  • 16.  RE: Submit EDI File to Trading Network

    Posted Thu October 21, 2010 01:01 PM

    Hi Suvigya,

    Check original EDI file Delimiters with restore pipeline data Delimiters…if you find any difference then update me…


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


  • 17.  RE: Submit EDI File to Trading Network

    Posted Thu October 21, 2010 05:06 PM

    Probably the issue could be with this wierd record/segment delimiter (È) that you are getting it…For testing try replace with ~ or some thing and route it again…See how it goes and let us know…

    Try using Hex editor (like ultraedit) and look it in ascii.

    HTH,
    RMG


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


  • 18.  RE: Submit EDI File to Trading Network

    Posted Thu October 21, 2010 11:08 PM

    As above suggested by RMG repalce your segement delimiter by ~ or line break and in converttovalues specify the same delimiter in segment delimiter.


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


  • 19.  RE: Submit EDI File to Trading Network

    Posted Fri October 22, 2010 11:51 AM

    Hi,
    Thank you RMG and devexpert…
    I would try doing with that and then confirm with this update.

    Regards
    Suvigya


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


  • 20.  RE: Submit EDI File to Trading Network

    Posted Fri October 22, 2010 06:04 PM


  • 21.  RE: Submit EDI File to Trading Network

    Posted Mon October 25, 2010 03:15 PM

    Hello,
    sorry for late reply, but the file was perfect, as I checked it with schema.
    Actually, the save and restore pipeline was not working. The file was not getting stored. So alternatively, I copied the input file to IS and then used getfile service, after which it was working perfectly.

    Thank you all for great help and time…will ask more when required. :slight_smile:
    Regards
    Suvigya


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


  • 22.  RE: Submit EDI File to Trading Network

    Posted Mon October 25, 2010 07:22 PM

    OK great…as long it works for you…you are in the right direction…

    HTH,
    RMG


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