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
  • 1.  Transforming data XML and stylesheet XSL into WML format

    Posted Tue March 19, 2002 09:33 AM

    Hello!

    My software is:
    Microsoft Windows 2000 Professional
    Personal Web Server
    Tamino 3.1.1.1
    Nokia Mobile Internet Toolkit 3.0 :cool:

    My data and my stylesheet (xsl) are stored in TAMINO. I retrieved these date using the following vbscript:

    <%
    Dim DataBase, StyleSheet
    DataBase = “http://localhost/tamino/myDatabase/col?_xql=dok
    Query = “[surname=‘Baumann’]”
    Stylesheet = “http://localhost/tamino/myDatabase/col/style/First.xsl
    Set xmlcon = Server.CreateObject(“MSXML2.ServerXMLHTTP”)
    xmlcon.Open “GET”, DataBase+Query, False
    xmlcon.Send
    Set xmldoc = Server.CreateObject(“Microsoft.XMLDOM”)
    xmldoc.async = false
    xmldoc.loadxml xmlcon.responseText
    If xmldoc.parseError <> 0 Then
    Response.Write “Error loading data from TAMINO”
    Else
    Response.Write “OK loading data!”
    End If
    Set xslcon = Server.CreateObject(“MSXML2.ServerXMLHTTP”)
    xslcon.Open “GET”, StyleSheet, False
    xslcon.Send
    Set xsldoc = Server.CreateObject(“Microsoft.XMLDOM”)
    xsldoc.async = false
    xsldoc.loadxml xslcon.responseText
    If xsldoc.parseError <> 0 Then
    Response.Write “Error loading XSL stylesheet”
    Else
    Response.Write “OK loading stylesheet”
    Response.Write XMLDoc.transformNode(xsldoc.documentElement)
    End If
    Response.End
    %>

    My problem is to transform these data into my Nokia Mobite Toolkit 3.0 by WML format. :frowning:

    When I tried in NOKIA MOBILE TOOLKIT version 3.0 to execute my vbscript by the following url: http://localhost/wap/example01.asp I got the message error: “Content could not be encoded by the gateway”. :frowning: :frowning:

    I also tried add ONE line:
    Response.ContentType = “text/vnd.wap.wml”
    so then my vbscript was:

    <%
    Dim DataBase, StyleSheet
    DataBase = “http://localhost/tamino/myDatabase/col?_xql=dok
    Query = “[surname=‘Baumann’]”
    Stylesheet = “http://localhost/tamino/myDatabase/col/style/First.xsl
    Set xmlcon = Server.CreateObject(“MSXML2.ServerXMLHTTP”)
    xmlcon.Open “GET”, DataBase+Query, False
    xmlcon.Send
    Set xmldoc = Server.CreateObject(“Microsoft.XMLDOM”)
    xmldoc.async = false
    xmldoc.loadxml xmlcon.responseText
    If xmldoc.parseError <> 0 Then
    Response.Write “Error loading data from TAMINO”
    Else
    Response.Write “OK loading data!”
    End If
    Set xslcon = Server.CreateObject(“MSXML2.ServerXMLHTTP”)
    xslcon.Open “GET”, StyleSheet, False
    xslcon.Send
    Set xsldoc = Server.CreateObject(“Microsoft.XMLDOM”)
    xsldoc.async = false
    xsldoc.loadxml xslcon.responseText
    If xsldoc.parseError <> 0 Then
    Response.Write “Error loading XSL stylesheet”
    Else
    Response.Write “OK loading stylesheet”
    Response.ContentType = “text/vnd.wap.wml”
    Response.Write XMLDoc.transformNode(xsldoc.documentElement)
    End If
    Response.End
    %>

    However in this case, I got the same error message: “Content could not be encoded by the gateway”. :frowning: :frowning: :frowning:

    How can I fix this problem?

    Thanks a lot, for support! :cool:

    Best Regards from POLAND
    Dariusz Baumann


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


  • 2.  RE: Transforming data XML and stylesheet XSL into WML format

    Posted Thu March 21, 2002 09:32 AM

    Any ideas for to be connected TAMINO with WML using ASP script?
    :frowning: :frowning: :frowning: :frowning: :frowning:

    Best Regards
    Dariusz Baumann
    POLAND


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


  • 3.  RE: Transforming data XML and stylesheet XSL into WML format

    Posted Thu March 21, 2002 01:00 PM

    Hello!

    On official Software AG documentation I found ONLY two separate topic. Here these are:

    1) XSLT summary
    Advantages
    XSLT stylesheets can convert XML into almost any output format, from HTML over XHTML to WML, SVG, SMIL, etc. This allows support not only for HTML clients but also for mobile clients, and for multimedia applications.

    2) Introduction into XSLT
    XSLT can, for example, be used to transform presentation neutral XML data into presentation formats such as HTML, XHTML, XForms, WML, SMIL, SVG, etc.


    It is ONLY teoritical text WITHOUT any practical examples. :frowning: :frowning: :frowning: :frowning: :frowning:

    Can anybody share with me your samples about transforming XML data (stored in Tamino) into WML format using XSL stylesheet?

    Any samples will be VERY VERY VERY appreciated!

    Thanks a lot for support and helping hand.

    Best Regards
    Dariusz Baumann
    POLAND


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


  • 4.  RE: Transforming data XML and stylesheet XSL into WML format

    Posted Mon April 08, 2002 11:29 AM

    Hello!

    I couldn’t solve this problem. PLEASE, help me. Thanks a lot…

    Regards,
    Dariusz Baumann


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


  • 5.  RE: Transforming data XML and stylesheet XSL into WML format

    Posted Mon April 08, 2002 02:39 PM

    I think this may be the wrong forum for this question. This may explain why you are getting no answers. Have you tried the XSLT forum?


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