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.  query using java API

    Posted Wed February 27, 2002 04:06 PM

    Hi all,

    When I make a query from browser or Interactive Interface I can use an expression like:
    http://…?_xql(11,10)=rootnode
    I’m interesting on to receive a result with a specific range of documents such as (11,10)
    Is there a way to perform the same query using taminoclient.jar ?
    If no, is there a workaround in order to obtain the same result?


    regards
    Cristian


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


  • 2.  RE: query using java API

    Posted Wed February 27, 2002 04:25 PM

    Yes


    The TaminoClient pageSize property is the “10” in your example

    So if you instance a TaminoClient object with a pageSize of 10 or set the pageSize property subsequently

    TaminoClient instances have a query method which take an optional offset parameter - the “11” in your case.
    TaminoResult query(java.lang.String query, int offset)

    so to adapt the documentation example

    import com.softwareag.tamino.API.dom.*;


    try {
    TaminoClient tamino = new TaminoClient(“http://localhost/tamino/mydb”);
    tamino.setPageSize(10);

    TaminoResult tr = tamino.query( " entry[@name=“Jackson” ",11);

    }
    catch ( Exception rx ) {


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


  • 3.  RE: query using java API

    Posted Wed February 27, 2002 04:43 PM

    thank you very much !!

    this is just that I wanted to obtain.

    regards
    Cristian


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