webMethods

webMethods

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.  ino:messageline

    Posted Tue November 19, 2002 11:33 AM

    How can I get value from node “ino:messageline”?

    Thanks in advance!

    best regards,
    Dariusz Baumann


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


  • 2.  RE: ino:messageline

    Posted Tue November 19, 2002 12:15 PM

    TaminoResult has the getMsgLine() method to return the ino:messageline content. Also the TaminoResult object has a getDocument() method to allow access to the whole response document.


    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


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


  • 3.  RE: ino:messageline

    Posted Tue November 19, 2002 12:34 PM

    Here is my code:

    --------------------------------------
    import java.util.;
    import org.w3c.dom.
    ;
    import com.softwareag.tamino.API.dom.*;

    public class sample {
    public static final void main(String arg) throws Exception
    {
    String myQuery = “doc[id_client<‘12345’] sortby(id_client desc)”;
    String myURL = “http://localhost/tamino/mydb/col”;
    int intPageSize = 1;
    TaminoClient tc = new TaminoClient(myURL);
    tc.setPageSize(intPageSize);
    tc.startSession();
    try {
    TaminoResult tr = tc.query(myQuery);
    System.out.println(“myURL=” +myURL);
    System.out.println(“myQuery=” +myQuery);

    Document dc = tr.getDocument();
    Element el = dc.getDocumentElement();
    tc.printTree(el);
    String inoFirst = el.getElementsByTagName(“ino:messageline”).item(0).getChildNodes().item(0).getNodeValue();
    System.out.println("ino:messageline1 = " +inoFirst);

    String inoSecond = tr.getMsgLine();
    System.out.println("ino:messageline2 = " +inoSecond);

    tc.endSession();
    }
    catch(Throwable th) {
    th.printStackTrace(System.out);
    }
    }
    }
    --------------------------------------

    I got:

    ino:messageline1 = XQL Request processed, no object returned
    ino:messageline2 = null

    So unfortunately, method “getMsgLine()” doesn’t work. How should I use this method in properly way?

    thanks in advance!

    best regards,
    Dariusz Baumann


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