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