Com envio os parametros abaixo via POST, para requizitar informações de um documento XML?
Pode ser em ASP.
<dados>
<clientes>
<nome></nome>
<fone></fone>
</clientes>
<relatorio>
<compras></compras>
<valor></valor>
</relatorio>
</dados>
Aguardo ajuda!!!

Enviar Parametros
Started By dolci, 07/06/2006, 16:03
1 reply to this topic
#1
Posted 07/06/2006, 16:03
#2
Posted 16/06/2006, 13:52
Tive esta dúvida também, achei na web, mas foi difícil.
Function puxaXML()
sVar = "CODIGO=123456"
Set xmlhttp = server.CreateObject("microsoft.XMLHTTP")
xmlhttp.open "POST","URL.asp", False
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.Send sVar
puxaXML = xmlhttp.responsexml.xml
End Function
Function puxaXML()
sVar = "CODIGO=123456"
Set xmlhttp = server.CreateObject("microsoft.XMLHTTP")
xmlhttp.open "POST","URL.asp", False
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.Send sVar
puxaXML = xmlhttp.responsexml.xml
End Function
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)