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

Problem Processing EDI in TN

  • 1.  Problem Processing EDI in TN

    Posted Mon October 30, 2006 11:39 PM

    Hi,

    I am facing a problem with Trading networks.My flow service is picking up files from client inbox using FTP and sending them to Trading network using wm.tn:receive for further processing.All are EDI files.I am looping over the directory list of the files and passing it to wm.tn:receive.The TN process the first file and even after looping over the second file and sending it to TN it still processes the first file.I could see different files coming in after looping till wm.tn:receive but the TN process only the first file again and again.Can anyone pls help me!!!

    regards
    Peepa


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


  • 2.  RE: Problem Processing EDI in TN

    Posted Tue October 31, 2006 01:09 AM

    Are you using the IS “file polling port” to process the files in a folder or are you using an IS Flow service to read the folder contents and loop over each one to send it to TN?

    If using a Flow service, can you post the sequence of steps involved in reading the folder contents and looping over the filenames to invoke wm.tn:receive?

    Mark


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


  • 3.  RE: Problem Processing EDI in TN

    Posted Tue October 31, 2006 01:54 AM

    I am using flow service pub.client.ftp:login and then to get the list of files using pub.client.ftp .AFter getting the dirlist:(directory list) i loop over the list and pass the dirlist inside the loop to pub.flatFile:convertToValues.Using ffvalues i get the file name and pass it to pub.client.ftp:get.I am mapping the o/p from pub.client.ftp:get ie byte to the wm.tn:receive.


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


  • 4.  RE: Problem Processing EDI in TN

    Posted Tue October 31, 2006 03:03 AM

    Look in the VANFTP folder (I may have the folder name wrong) in WmEDIforTN for code that retrieves EDI files from an FTP server and submits each to TN for processing. You can either use the services there directly, or copy them to your own package and modify them as needed.

    If you don’t want to go this route, make sure you’re dropping all the appropriate work variables in your loop.


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


  • 5.  RE: Problem Processing EDI in TN

    Posted Tue October 31, 2006 05:38 AM

    We have to use the custom flow services but even though i have dropped appropriate work variables it is still not working.


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


  • 6.  RE: Problem Processing EDI in TN

    Posted Tue October 31, 2006 02:09 PM

    This has all the signs of a variable not being dropped. Are you dropping the ‘edidata’ variable after each call to wm.tn:receive? If not, this would cause the behavior you’re seeing.

    Tim


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


  • 7.  RE: Problem Processing EDI in TN

    Posted Tue October 31, 2006 02:44 PM

    Peepa,

    Can you elaborate a bit more on your flow steps including input/output mappings till before you call tn:receive service?? Also upload the flow service screen shot (in maximize view) so that we can see dropped variables,work variables etc…

    -RMG


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


  • 8.  RE: Problem Processing EDI in TN

    Posted Tue October 31, 2006 04:16 PM

    Not surprising that you need to use your own custom services (though I’m curious as to why). It would still be worth your time to look at the services provided by wM. They are FLOW services and are viewable/copyable. Don’t spend a lot of time solving something that has already been solved.


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


  • 9.  RE: Problem Processing EDI in TN

    Posted Tue October 31, 2006 04:21 PM

    The service VAN.VANConnectivity:getFromVAN in the WmEDIforTN package is a good example to work from. There is also a corresponding putToVAN service.

    Tim


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


  • 10.  RE: Problem Processing EDI in TN

    Posted Tue October 31, 2006 11:53 PM

    Hi Everyone,

    Thank you all very much for all the valuable suggestions.I used the clearPipeline in the service and now it is working fine.

    Peepa


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