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

Retrieving XML files from Tamino

  • 1.  Retrieving XML files from Tamino

    Posted Thu May 30, 2002 11:05 AM

    Presently I am trying to retrieve and modify xml files from a database. The snippet that has been giving me problems is:

    --------------------------------------------------
    var dbname=“http://localhost/tamino/xmldb/ino:etc”;
    var QueryObj;
    var QueryResult;
    var itemSelected;
    var zip;
    var xqlResult;
    var QueryVal=‘/ME’;
    var pageSize=12;

    QueryObj = new TaminoClient(dbname, pageSize);
    QueryResult = QueryObj.query(QueryVal);
    xqlResult=QueryResult.getResult();
    var nodeList=xqlResult.childNodes();
    QueryObj.startSession();
    --------------------------------------------------
    The error that it is showing is:

    Error = ‘TaminoClient’ is undefined


    Could anyone help me please??

    Thanx a million,
    Adrian


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


  • 2.  RE: Retrieving XML files from Tamino

    Posted Thu May 30, 2002 11:50 AM

    Hi, you have to include the TaminoLib.js library which can be found in the “SDK\JScript API” directory under your Tamino installation directory. So in your HTML, you can do the following:


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


  • 3.  RE: Retrieving XML files from Tamino

    Posted Thu May 30, 2002 01:44 PM



    Hi, Sorry I forgot to add that I had included the TaminoLib.js library before I posted the original message. And I got the mentioned error message. Could it be that the program couldn’t find the the database? I installed Tamino in my local drive…


    Rgds


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


  • 4.  RE: Retrieving XML files from Tamino

    Posted Thu May 30, 2002 04:15 PM

    If you get the error “‘TaminoClient’ is not defined”, this means that the TaminoLib.js has not been found or not loaded. Has your browser cached your html file and you are still looking at an old version?


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


  • 5.  RE: Retrieving XML files from Tamino

    Posted Fri May 31, 2002 04:11 AM



    Hi, I think i know the problem. I placed the TaminoLib.js in the same directory as my htm file and the error msg was found. Thx a million…:>

    Rgds


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