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
Expand all | Collapse all

TaminoResult methods returning null

  • 1.  TaminoResult methods returning null

    Posted Sun January 13, 2002 03:02 AM

    Hello All,
    I am executing a query unsing http client for Java. I am getting the Elements in result , but version , collection, doc type etc is returing as null.Please have a look at the code:
    ===============================================
    TaminoResult tr = tamino.query(“//patient[//firstname ~= ‘Fred’]”, “Hospital”);
    String version_number = tr. getVersion() ;
    String collection_name = tr.getCollection();
    String doctype_name = tr.getDocType();

    System.out.println("version_number: "+ version_number);
    System.out.println("collection_name: "+ collection_name);
    System.out.println("doctype_name: "+ doctype_name);
    String var_QI_InoID = tr.getInoId();
    System.out.println("Fred: Ino ID: "+ var_QI_InoID);

    all above displays are showing nulls output.
    Record is there in database and I am able to display that…
    System.out.print(el.getElementsByTagName(“surname”).item(0).getChildNodes().item(0).getNodeValue());

    but the ino ID, version ,doctype etc are showing null

    ===============================================

    PLease help .
    thanks & regards


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


  • 2.  RE: TaminoResult methods returning null

    Posted Mon January 14, 2002 02:06 PM

    According to the documentation…

    getDocType
    getInoId
    getCollection

    return values from the results ino:object element.
    This isn’t present in a query result document. It is present in a insert/update result document.

    getVersion works fine.


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