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.  Default Namespace and XQL queries

    Posted Thu November 18, 2010 02:21 PM

    Hi,
    I have a requirement where in I need to create an xml with a root tag like this – with a default namespace.

    And then, I route this to TN. But, TN XQL queries fail to recognize document attributes.

    If i add any namespace to route tag like the below one – It works out fine.

    Can you please let me know the solution for this?


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Default Namespace and XQL queries

    Posted Fri November 19, 2010 03:13 PM

    Hello,
    I have not worked on this thing, but today I was just watching the properties of developer, there I found an option of default query language for XML node as WQL or XQL…do try to check that.

    It comes in tools > options > IS > Flow editor…

    Do check it and reply…


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Default Namespace and XQL queries

    Posted Tue November 23, 2010 10:47 AM

    when u define xml documents in TN, map the namespaces(prefix used in document, with uri). or otherwise use the same exact prefix used in TN document.

    imo, your problem is because

    1. there is no namespace mapping in TN for the document type
    2. using default namespace results in some random prefixes (like v0, tns1 etc)
    3. XQL quesy uses namespace prefix “msts”

    So when a xml with default namespace is received, the XQL cannot be evaluated due to point 1.

    hope this helps!
    DC


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Default Namespace and XQL queries

    Posted Tue March 15, 2011 05:57 PM

    Is this issue resolved?
    I have a similar issue and the document does not get recognized as it does not have a prefix. i tried to add “prefix0” as the name space with this URI, but no luck.

    xmlns=“rr:org.xcbl:schemas/xcbl/v4_0/ordermanagement/v1_0/ordermanagement.xsd”


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB