Hello!
My software is:
Microsoft Windows 2000 Professional
Personal Web Server
Tamino 3.1.1.1
Nokia Mobile Internet Toolkit 3.0
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.
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”.
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”.
How can I fix this problem?
Thanks a lot, for support!
Best Regards from POLAND
Dariusz Baumann
#API-Management#webMethods-Tamino-XML-Server-APIs#webMethods