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

Trading Network Document Type

  • 1.  Trading Network Document Type

    Posted Wed April 16, 2003 02:18 PM

    Hi All
    I want to define a document type in TN with the Identify query tab having any of the two values. For example I have to identify a document on the status type. If status type is ‘A’ or ‘B’ document should be a Purchase Order. If status type is ‘C’ then document should be Purchase Order Change. I already defined one Document with identifying query PurchaseOrder/@PurchaseOrderStatusType and value is equal to ‘C’. How can I define Purchase Order with status type either ‘A’ or ‘B’? Can I use the OR operator in the value field of identify tab?

    Michael


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


  • 2.  RE: Trading Network Document Type

    Posted Wed April 16, 2003 06:57 PM

    Assuming a document structure like this:

    <roottag> 
    <status>A</status> 
    </roottag>

    The identifying query would be:

    /roottag[status='A' or status='B']

    This will match if the value of status is A or B.


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


  • 3.  RE: Trading Network Document Type

    Posted Wed April 16, 2003 07:22 PM

    Thanks Rob. In doctype identify tab I am getting two textbox …one for query and other for value.Can I enter /roottag/status in Query and ‘A’ or ‘B’ in value. Will it work?
    Michael


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


  • 4.  RE: Trading Network Document Type

    Posted Wed April 16, 2003 07:26 PM

    No it will not work. Place the query as listed in my first post in the Query field and nothing in the Value field.


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


  • 5.  RE: Trading Network Document Type

    Posted Wed April 16, 2003 07:49 PM


  • 6.  RE: Trading Network Document Type

    Posted Wed April 16, 2003 08:13 PM

    Hi Rob
    When I tried to give the following query I got an error to save that query
    /PurchaseOrder[0]/@PurchaseOrderStatusType[‘Amended’ or ‘Cancelled’]

    The value field was blank.

    Any Idea why?

    Michael


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


  • 7.  RE: Trading Network Document Type

    Posted Wed April 16, 2003 08:39 PM

    The syntax isn’t quite right. Try this in the Query field:

    /PurchaseOrder[@PurchaseOrderStatusType=‘Amended’ or @PurchaseOrderStatusType=‘Cancelled’]

    Leave the Value field empty. Let me know if this doesn’t work.


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


  • 8.  RE: Trading Network Document Type

    Posted Thu April 17, 2003 02:04 AM

    Thanks a lot Rob. Yes its working.

    Michael


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


  • 9.  RE: Trading Network Document Type

    Posted Mon November 10, 2003 04:50 PM

    How would I say negative of some value in the Identifying query. Like my xml comes in as:

    <roottag>
    <12345> (!-- This is the *body of the roottag)
    <@type>A</@type>
    </roottag>

    and I want to create a query to say if /roottag/@type ‘A’ is not equal to ‘12345’

    Thanks for your help


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


  • 10.  RE: Trading Network Document Type

    Posted Mon November 10, 2003 05:14 PM

    I was able to create a query with the help of w3.org website.

    Thanks any way


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