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

Problems with TaminoClient and TaminoLib.js

  • 1.  Problems with TaminoClient and TaminoLib.js

    Posted Mon October 18, 2004 02:47 PM

    Hi!

    I try to access my Tamino Database via JScript using the TaminoLib.js file. I got the error message “TaminoClient is undefined”.

    My code is like this:





    <![CDATA[

    function Load (evt)
    {
    var dbname=“http://localhost/tamino/BeispielDB/Beispiel”;
    var QueryObj;
    var QueryResult;
    var itemSelected;
    var xqlResult;
    var QueryVal=‘root/Objekte’;
    var pageSize=12;

    QueryObj = new TaminoClient(dbname, pageSize, “user”, “pw”);
    QueryResult = QueryObj.query(QueryVal);


    What is wrong here? The TaminoClient function is defined in the TaminoLib.js file, so it should be known here!!!

    Please help me
    Katharina


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


  • 2.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Mon October 18, 2004 03:06 PM

    Is the TaminoLib.js file in the same directory as your code?

    You may use an absolute or relative path to define the location of TaminoLib.js.


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


  • 3.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Mon October 18, 2004 05:08 PM

    Yes, it’s in the same directory! I also tried src=“./TaminoLib.js” and src=“c:/TaminoLib.js” but it also doesn’t work!


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


  • 4.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Mon October 18, 2004 05:42 PM

    Could you try adding the following attribute to your tag?

    language=“JavaScript”


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


  • 5.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Mon October 18, 2004 06:22 PM

    This following file is a tiny part of the JScript test suite.

    Does it work in your environment?
    Test.zip (508 Bytes)


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


  • 6.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 08:51 AM

    I also tried it with but it doesn’t work. The test.htm file accepts the TaminoLib.js file and there are no error messages. But it can’t recongnize the Tamino Version.


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


  • 7.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 09:24 AM

    Curiouser and curiouser!

    Which version of Tamino are you using?

    Could you post a copy of the TaminoLib.js you have?


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


  • 8.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 09:34 AM

    I have Tamino 4.1.4.1!

    Here’s a copy of my TaminoLib.js:
    TaminoLib.js (44.2 KB)


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


  • 9.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 10:11 AM

    I don’t understand this at all. Your TaminoLib.js works OK in my environment. It also produces the following output when run with Test.htm:

    URL: http://10.42.22.182/tamino/mydb/ino:etc

    Tamino DB Version: 4.1.4.1

    which is what I would expect. Maybe you need to alter your copy of Test.htm to pass in the user/password in the TaminoClient constructor?


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


  • 10.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 10:18 AM

    I set my password and userId in the TaminoClient Constructor but it also doesn’t work!


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


  • 11.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 10:51 AM

    If you type the following into a browser:

    http://localhost/tamino/db/collection?_diagnose=version

    are are you asked for your user/password or do you get to see the DB version (where “db” + “collection” are filled in as appropriate)?


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


  • 12.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 11:06 AM

    This is what I get when typing
    http://localhost/tamino/BeispielDB/Beispiel? diagnose=version
    in the browser:

    <?xml version="1.0" encoding="ISO-8859-1" ?>
    - <ino:response xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“XQL FAQ (XML Query Language - Frequently Asked Questions)”>
    - ino:request
    <ino:diagnose ino:request-type=“version” />
    </ino:request>
    - ino:message
    <ino:messageline ino:subject=“Version”>4.1.4.1</ino:messageline>
    </ino:message>
    </ino:response>


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


  • 13.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 11:11 AM

    I suspect that supplying the redundant user/password in the TaminoClient constructor causes the interface not to work.

    In Test.htm did you just try “new TaminoClient(dburl)”?


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


  • 14.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 11:20 AM

    Ok,now the test.htm works. But why is the TaminoClient function from TaminoLib.js in my project unknown?

    This is the whole code:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
    http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd” [

    ]>



    ASV-Funktion parseXML()
    XML Daten aus Tamino Datenbank lesen!






    XML-Inhalte mittels ASV-Funktion parseXML() in SVG einbinden


    XML-Daten laden und darstellen





    © by Dr. Thomas Meinike 2002


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


  • 15.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 11:33 AM

    It might be because you are using an XML file? Have you tried your script from an HTML file?

    It might appear to partly work in Internet Explorer because it is interpreting some of the HTML tags?


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


  • 16.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 11:53 AM

    I put my script in a html file and now it works! But isn’t it possible to put it in a svg file like I did, because I want to create a graphic from my xml data.


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


  • 17.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 12:05 PM

    I’m not at all familiar with SVG.

    However, I suspect that you should be able to produce SVG from the script in your HTML page using document.write and get it to the browser in that way.

    Also the JavaScript API can be used from ASP to help produce pages.


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


  • 18.  RE: Problems with TaminoClient and TaminoLib.js

    Posted Tue October 19, 2004 12:10 PM

    I will try it!

    Thank you for helping me :wink:


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