Tema: xml en ASP
Ver Mensaje Individual
  #6 (permalink)  
Antiguo 26/08/2002, 12:17
henryzs
 
Fecha de Ingreso: enero-2002
Mensajes: 189
Antigüedad: 23 años, 3 meses
Puntos: 0
Re: xml en ASP

Hola:

Empezando por la segunda pregunta; la página que recibe el xml debe de ser mas o menos asi (para leer usa el metodo load). Te adjunto un código que simulaba al biztalk

-------------------------------------------
<%

set xmldom = server.CreateObject("Microsoft.XMLDOM")
xmldom.Load(Request)

'Instanciando elemento raiz e hijos
set rootnode = xmldom.documentElement
set children = rootnode.childNodes

'Obteniendo Numero de Orden de Compra
for each atributo in rootnode.attributes

'Código del pedido
if atributo.name = "Pedido_id" then
strPedido = atributo.value
end if

'Código del item
if atributo.name = "Item_id" then'
strItem = atributo.value
end if

'Estado del item
if atributo.name = "Estado_item" then'
strEstado = atributo.value
end if

'Estado del item
if atributo.name = "Fecha_Update" then'
strFecha = atributo.value
end if


next

xmldom.save(server.MapPath("recibidos\" + strPedido + "-" + strItem + ".xml" ))

set objEnvioXml = server.CreateObject("TiendaVirtual.clsOrden&q uot;)
objEnvioXml.actualizaItem cstr(strPedido),cstr(strItem),cstr(strEstado)

set objEnvioXml = Nothing
set xmldom = Nothing

%>