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
  • 1.  Create queryDocument flow service

    Posted Mon May 11, 2020 07:16 AM

    I would like to create a flow service named queryDocument based on XQL language and using pub.xml:queryXMLNode

    My idea is to do something like that

    pub.xml:documentToXMLString
    pub.xml:xmlStringToXmlNode
    pub.xml:queryXMLNode

    It seems to work but

    If I have some document like that :

    doc (IDATA)
    – var1 (Record)
    ----- val1 (String)
    ----- key1 (String)
    – var2 (Record)
    ----- val2 (String)

    The pub.xml:documentToXMLString transform my doc in the following xml :






    tag doc is not included in xml.
    So when I query xml, the system doesn’t recorgnize my XQL expression.

    Is it a way to include top tag (document) in xml.
    By advance thanks


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


  • 2.  RE: Create queryDocument flow service

    Posted Thu April 01, 2021 01:52 PM

    Just embed your document in a sub element called doc via a map step, then call documentToXMLString
    regards
    John.


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