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.  Presenting XML and XSL storing in TAMINO

    Posted Fri January 25, 2002 02:53 PM

    Hello!

    My software are:
    1) System Windows 2000 Professional
    2) Tamino 3.1.1.1
    3) Apache 1.3.22 + module SSL
    4) Apache JServ 1.1.2
    5) Internet Explorer 6.0
    6) MSXML 3.0 (updating MSXML 4.0) parser

    I would like to present my XML date storing in TAMINO by using style sheet XSL (storing in TAMINO as well). I have been trying to do this in above 3 issuses:

    --------------------------------------------
    1) external file javascript (js) in which I execute two functions from MSXML 3.0/4.0 parser like: Load and TransformNode. This functions comes from ActiveXObject of XMLDOM Microsoft.

    I have got problems to correct load xml date storing in TAMINO by using function Load. This function returns:

    ErrorCode: -2146697208?
    ErrorText: This store cannot be reached

    I must admit that I use https connection. Any query to TAMINO database executes by parameter of function Load didn’t work at all. I have updated my IE6 into MSXML 4.0 but it hasn’t solved this problem. :frowning:

    For me it is a huge strange thing because when I try to load XML date storing physical on hard disk as a file (for example https:\date\persons.XML) IT WORKS pretty good!
    :confused:

    So how can I solve this problem?
    --------------------------------------------

    2) Very similar problems I got when I had tried to present my XML date storing in TAMINO by style sheet XSL (storing in TAMINO as well) using Apache JServ and passthru.jar from TAMINO. When I try to execute command in URL in IE6 on https connection I got message:
    TAMINO SERVLET ERROR. :frowning:

    I must admit that the http connection using Apache+SSL+JServ+Tamino WORKS pretty good. :confused:

    So how can I solve this problem?
    ---------------------------------------------

    3) I was trying to presenting XML date storing in TAMINO without XSL style sheet by using TAMINOLIB.js API

    It works on https connection but how can I use my style sheet XSL storing in TAMINO using TAMINOLIB.js? It is possible? Any examples?

    Of course I couldn’t use MSXML 4.0 parser by execute Load/transformNode functions because it didn’t work with TAMINO! :frowning:

    ---------------------------------------------
    4) Are there any other possibilities to presenting date storing in TAMINO by using style sheet XSL?

    Any clues or sample examples would be appreciated and I would like to thank for support.

    Best Regards
    Dariusz Baumann
    POLAND


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: Presenting XML and XSL storing in TAMINO

    Posted Mon January 28, 2002 11:36 AM


    3) I was trying to presenting XML date storing in TAMINO without XSL style sheet by using TAMINOLIB.js API

    It works on https connection but how can I use my style sheet XSL storing in TAMINO using TAMINOLIB.js? It is possible? Any examples?

    Of course I couldn’t use MSXML 4.0 parser by execute Load/transformNode functions because it didn’t work with TAMINO!

    If TaminoLib.js can be used for reading you data from Tamino It should also be able to read the stylesheet
    Suppose the stylesheet is at
    http://host/tamino/db/col/xsl.stylesheet/@1234
    and you already read your data into a DOM var x using
    a TaminoClient object client specifying the same collection col

    do
    var r=client.getDocument(“xsl.stylesheet/@1234”)
    if (!r.errorNo)
    {
    var z=x.transformNode(r.DOM);
    etc

    If the style sheet is in a different collection then you need the full URL of the stylesheet.


    #webMethods
    #API-Management
    #Tamino


  • 3.  RE: Presenting XML and XSL storing in TAMINO

    Posted Mon January 28, 2002 01:57 PM

    myDatabase = ‘https://darekb/tamino/database/doc’;
    pageSize = 5;
    var client = new TaminoClient(myDatabase, pageSize);
    var x = client.getDocument(‘https://darekb/tamino/database/doc?_xql=dok’);
    var r = client.getDocument(‘https://darekb/tamino/database/style/mystyle.xsl’);
    var z = x.transformNode(r.DOM);
    div1.innerHTML = z;

    returned that variable x cannot be use with transformNode function API. :eek:

    Any helps would be appreciated!

    Regards
    Dariusz Baumann :


    #API-Management
    #webMethods
    #Tamino


  • 4.  RE: Presenting XML and XSL storing in TAMINO

    Posted Tue January 29, 2002 07:47 AM

    myDatabase = ‘https://darekb/tamino/database/doc’;
    pageSize = 5;
    var client = new TaminoClient(myDatabase, pageSize);
    var x = client.query(“dok”); //fix
    var r = client.getDocument(‘https://darekb/tamino/database/style/mystyle.xsl’);
    var z = x.DOM.transformNode(r.DOM); //fix
    div1.innerHTML = z; //fix

    [This message was edited by Nigel Hutchison on 29 Jan 2002 at 09:17.]


    #API-Management
    #webMethods
    #Tamino


  • 5.  RE: Presenting XML and XSL storing in TAMINO

    Posted Tue January 29, 2002 11:28 AM

    Thanks for fixing this source code of javascript.

    So, I would like to thank you very much for support. It WORKS with https (ssl) very good!!! :slight_smile: :slight_smile: :slight_smile:

    GREAT THANKS!!!

    Regards
    Dariusz Baumann
    POLAND

    PS.
    By the way: Why MSXML 3/4 parser didn’t work (and still don’t work!) :frowning:

    Why function Load didn’t work with these lines?
    :frowning:

    x = new ActiveXObject(“Microsoft.XMLDOM”);
    x.Load(‘https://darekb/tamino/database/doc?_xql=dok’); ← returned exception (object cannot be reached with code number -2146697208
    r = new ActiveXObject(“Microsoft.XMLDOM”);
    r.Load(‘https://darekb/tamino/database/style/mystyle.xsl’);
    z = x.transformNode(r.documentElement);
    div1.innerHTML = z;

    I don’t really what is the reasons of this problem, at all! :frowning:

    How can I should solve this case?

    Could you help me in this case? Thanks a lot!


    #Tamino
    #webMethods
    #API-Management


  • 6.  RE: Presenting XML and XSL storing in TAMINO

    Posted Thu January 31, 2002 10:15 AM

    Sorry - I have no idea why load won’t work with https - I had a look on the MSDN web site but didn’t find anything


    #Tamino
    #webMethods
    #API-Management


  • 7.  RE: Presenting XML and XSL storing in TAMINO

    Posted Thu February 07, 2002 01:19 PM

    Nigel Hutchison Moderator wrote:

    Sorry - I have no idea why load won’t work with https - I had a look on the MSDN web site but didn’t find anything


    OK, so I think it must be BIG BUG in Microsoft software, so it is IMPOSSIBLE to fix it :frowning: (only programmers of Microsoft company can be able to fix this bug :smiley: !).

    Regards
    Darius Baumann
    POLAND


    #webMethods
    #API-Management
    #Tamino