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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Issue with VICS 4010 850

  • 1.  Issue with VICS 4010 850

    Posted 10/08/13 04:37 PM

    Hi,
    I’ve the VICS 4010 850 EDI document type installed on TN. I’ve an attribute which is retrieving information from /ST/N1/N104. When I submit a document to test, this attribute does not show up in the attributes tab of the transaction under Transactions (MWS).

    When I assign anyother node other than /ST/N1, it fetches the correct information.
    Any Idea what could be the issue.

    Thanks In Advance,
    Sravan


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


  • 2.  RE: Issue with VICS 4010 850

    Posted 10/08/13 05:16 PM

    Do your data contains value for N104 field?

    refering statement (this attribute does not show up in the attributes tab of the transaction under Transactions)
    it is not showing up completely or as empty?


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


  • 3.  RE: Issue with VICS 4010 850

    Posted 10/09/13 01:41 PM

    Yes, N104 field exists in the sample data.
    The attribute does not show up in the attributes tab of the Transactions.


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


  • 4.  RE: Issue with VICS 4010 850

    Posted 10/09/13 03:20 PM

    N1 is a loop so you query should be /ST/N1[0]/N104
    Or
    you have to write a custom service to get the N104 based on N101 in the N1 loop

    Regards,
    Sreenivas


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


  • 5.  RE: Issue with VICS 4010 850

    Posted 10/09/13 03:39 PM


  • 6.  RE: Issue with VICS 4010 850

    Posted 10/09/13 06:14 PM

    Sravan,

    Are you looping on N1 or just trying to extract N104 irrespective of its iterations?

    But if you want first iteration N1/N104 itself then go as Srinivas mentioned index N1[0] above:

    HTH,
    RMG


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


  • 7.  RE: Issue with VICS 4010 850

    Posted 10/16/13 01:02 PM

    I have not specified the index as 0 but have a condition in place to get the index. Below is the query I used
    /ST/N1[/ST/N1/N101=“ST”]/N104

    I tried the way Sreenivas has suggested and used the same query as his and it started showing up.
    I did not understand what is the difference between the two queries.

    Regards,
    Sravan


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


  • 8.  RE: Issue with VICS 4010 850

    Posted 10/16/13 03:27 PM

    The condition does not work in the Query

    you need to write a custom service and give it for attribute extraction in document type as shown in screen shot

    Note:Make sure you use wm.tn.rec:StringAttributeTransformService specification in custom service to populate the values correctly.
    one.bmp (3.75 MB)


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


  • 9.  RE: Issue with VICS 4010 850

    Posted 10/16/13 03:33 PM

    Query works that way only and can’t just give implicit loop need to have explicit mention of the iteration to work for XPATH.

    As long it works for you glad to hear that:

    HTH,
    RMG


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


  • 10.  RE: Issue with VICS 4010 850

    Posted 10/16/13 06:32 PM

    I’ve a similar query configured for a 856 and this works pretty well.
    /ST/HL/REF[/ST/HL/REF/REF01/code=“BM”]/REF02

    I’m a little confused, as I see that the above query is similar to the one I have on 850. The elements HL and REF can occur more than once in an 856 and we are able to successfully retrieve this value.

    Regards,
    Sravan


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


  • 11.  RE: Issue with VICS 4010 850

    Posted 10/16/13 07:22 PM

    Welcome to confusion world!.. :smiley:

    Yes could be the way setup for the 850 identifying query:


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


  • 12.  RE: Issue with VICS 4010 850

    Posted 10/16/13 08:23 PM

    I’ll use the query which is working then :slight_smile:

    Regards,
    Sravan


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