
25/08/2008, 13:11
|
 | | | Fecha de Ingreso: abril-2001
Mensajes: 2.249
Antigüedad: 24 años Puntos: 39 | |
Problema con aplicación asp-xml Hola no se si este problema valla aqui o en servidores.
resulta que tengo el siquiente codigo que jala de maravilla en mi pc que tiene windows xp professional con IIS <%
'Cachamos las variables del formulario
var_estado = Request.Form("estado")
var_fecha1 = Request.Form("fecha1")
var_fecha2 = Request.Form("fecha2")
'Llamamos al XML
url = "http://solutions.rwa.com.mx/eventos_ford/XML/xml.xml"
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send ""
For Each objItem in xmlhttp.responseXML.SelectNodes("aspxml/contents/Content")
if CDate(objItem.SelectSingleNode("fecha").text) >= CDate(var_fecha1) and CDate(objItem.SelectSingleNode("fecha").text) <= CDate(var_fecha2) then
Response.Write ("ID: " & objItem.SelectSingleNode("ID").text & "<br>")
Response.Write ("Evento: " & objItem.SelectSingleNode("evento").text & "<br>")
Response.Write ("Lugar: " & objItem.SelectSingleNode("lugar").text & "<br>")
Response.Write ("ID Estado: " & objItem.SelectSingleNode("estado").text & "<br>")
Response.Write ("Fecha: " & CDate(objItem.SelectSingleNode("fecha").text) & "<br><br><hr>")
end if
Next
set xmlhttp = nothing
%>
Pero al pasarlo a un windows 2000 server me marca el siguiente error::: Error Type:
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object: 'MSXML2.ServerXMLHTTP'
/sites/destinosford2007/2.asp, line 4
necesito saber si esto es compatible o no en tre 2000 server y professional xp
Saludos... |