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.  How to get element attribute "name value pair"

    Posted 01/06/09 07:45 AM

    Hi,
    I want to read flow.xml file of a flow service created in webmethod6.5 that can be located in ns folder of a package name as i want to read specific element and its attributes in name value pair for example

    [SIZE=2]

    in this invoke element i want values as

    TIMEOUT=
    SERVICE=pub.flow:savePipelineToFile
    VALIDATE-IN=$none
    VALIDATE-OUT=$none

    will anyone will help me out as how to do this in webmethod
    waiting for ur reply
    [/size]


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


  • 2.  RE: How to get element attribute "name value pair"

    Posted 01/06/09 04:29 PM

    Hi,

    I think the best would be to use pub.xml:queryXMLNode with query in WQL or XQL which will get you desired elements/attributes.

    Or you can use pub.xml:xmlNodeToDocument and then work with document in your flow.


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


  • 3.  RE: How to get element attribute "name value pair"

    Posted 01/06/09 07:33 PM

    Convert the XML data into IS document.

    Write a reusable java service which takes a document at runtime as input…

    Use getKey method in IDataCursor and getString method in IDataUtil, generate the Key Value pair


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


  • 4.  RE: How to get element attribute "name value pair"

    Posted 01/07/09 05:25 AM

    I have used pub.xml:queryXMLNode but problem i m getting only values but i need attributes and values in name=value pair and i have also tried pub.xml:xmlNodeToDocument and here problem is that how can i get all the invoke tag attribute and values can u be little bit descriptive


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