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
  • 1.  Extracting value given a name from a Document obj

    Posted 07/02/03 06:54 PM

    Just wondering if anyone is aware of an out of the box service which can return a value from a Document object given a name.

    Temporarily, I have created a service which does the following:

    Document to XML str -> XML str to XML node -> query XML Node

    One major reason I didn’t like this approach is because I had to hard code the XQL query for the name I am trying to get the value for.


    #broker
    #Universal-Messaging-Broker
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Extracting value given a name from a Document obj

    Posted 07/02/03 07:22 PM

    You can use a variable name in your query like ‘/%element%/rawtext()’ Then pass it the name of the element you want.


    #broker
    #webMethods
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB


  • 3.  RE: Extracting value given a name from a Document obj

    Posted 07/03/03 04:17 PM

    Will, thanks for your response. I tried what you suggested but got the following error:

    com.wm.app.b2b.server.ServiceException: com.wm.lang.flow.WattExpressionException: Character not valid in XQL: ‘%’ (ASCII 37)

    Any other recommendations to extract a value given a name from a wM Doc object?


    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #webMethods
    #broker


  • 4.  RE: Extracting value given a name from a Document obj

    Posted 07/03/03 04:37 PM

    I actually verified that it works before I responded to your question. I was able to reproduce your problem by missing the ending ‘%’ …make sure you use ‘%element%’ (% on both sides of the variable).


    #webMethods
    #Integration-Server-and-ESB
    #broker
    #Universal-Messaging-Broker