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 retrieve data with FLWR expression using Tamino Java

    Posted 03/18/07 06:59 PM

    I want to retrieve data with FLWR expression using Tamino Java API.

    Does Tamino Java API support FLWR expression to retrieve data? And how can I do this?

    Thanks!!


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management


  • 2.  RE: How to retrieve data with FLWR expression using Tamino Java

    Posted 03/18/07 09:47 PM

    FLWR expressions are part of XQuery.

    The Java API supports XQuery expressions.

    I think that a normal installation of the Java API includes sample programs.

    There should also be extensive documentation for the Java API.


    #API-Management
    #webMethods
    #webMethods-Tamino-XML-Server-APIs


  • 3.  RE: How to retrieve data with FLWR expression using Tamino Java

    Posted 03/19/07 06:17 AM

    I don’t know why the output is without value, can anyone help?

    [color=“indigo”]xml document:

    <client name=


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management


  • 4.  RE: How to retrieve data with FLWR expression using Tamino Java

    Posted 03/21/07 03:16 PM

    i put your expression and XML doc in the Stylus Studio 2007(its a XML&Xquey edit-and-debug software), it returns the correct results.

    i also have a similar problem, it works in the Stylus, but not in the Tamino API.

    maybe someone will help us soon.

    good luck!


    #API-Management
    #webMethods
    #webMethods-Tamino-XML-Server-APIs


  • 5.  RE: How to retrieve data with FLWR expression using Tamino Java

    Posted 03/21/07 07:21 PM

    I found that the getQueryContentAsString() output is at times less than you would expect.

    If you actually iterate over the elements returned you should find that all the info is there as expected.


    #webMethods
    #API-Management
    #webMethods-Tamino-XML-Server-APIs


  • 6.  RE: How to retrieve data with FLWR expression using Tamino Java

    Posted 03/24/07 08:24 AM

    Thanks for your reply.

    I have tried to use iterator to loop the data and display but still have problem. What can I do in the iterator loop to get the real value instead of null value?

    Below is the code I have tried.

    [color=“green”]TXQuery xquery = TXQuery.newInstance(“for $x in input()//client return $x”);

    TResponse response = xmlObjectAccessor.xquery(xquery);

    TXMLObjectIterator iterator = response.getXMLObjectIterator();
    TXMLObject xmlObject = null;

    while (iterator.hasNext()) {
    xmlObject = iterator.next();
    System.out.println(xmlObject.getElement())
    }[/color]

    Output:
    [client:null]
    [client:null]
    [client:null]


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 7.  RE: How to retrieve data with FLWR expression using Tamino Java

    Posted 03/24/07 10:07 AM

    You are using Element.toString() to produce the output. This is probably just showing details of the Element itself.

    You would need to look at something like XmlSerializer to actually serialize the element.


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 8.  RE: How to retrieve data with FLWR expression using Tamino Java

    Posted 03/24/07 09:22 PM