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.


#TechXchangePresenter
 View Only
  • 1.  Cursor operation example

    Posted Tue July 09, 2002 06:34 PM

    Hi,

    Is there someone who have tried to use the openCursor, fetchCursor and closeCursor methods?
    I am looking for some examples so that I can handle the quantity and result position.

    Thanks,

    Tony


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


  • 2.  RE: Cursor operation example

    Posted Wed July 10, 2002 04:13 PM

    The openCursor(), fetchCursor() methods are part of the TStreamAccessor interface. If this what you need to do because for each individual set of results you would have to process it yourself.

    If you want things in a DOM representation for example you can use TXMLObjectAccessor.Query(TQuery, int) method. Because this uses the new cursoring mechanism you must be within a local transaction context (and this is the same with TStreamAccessor as well). From the TResponse object you can get a TXMLObjectIterator and then use next(), prev() and moveBy().

    Does this help?


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


  • 3.  RE: Cursor operation example

    Posted Wed July 10, 2002 05:53 PM