Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/05/2008, 03:24
Motki
 
Fecha de Ingreso: septiembre-2003
Mensajes: 341
Antigüedad: 23 años
Puntos: 0
Respuesta: Problema al utilizar un Web Service

Ya lo tengo solucionado...
os dejo la solñución por si a alguien le ocurre lo mismo...
El problema lo tenia al pasar las variables por POST no se deben poner en la URL ..

[php]
URL =http://midominio.com/directorio/login.asmx/identificacion
Código PHP:
Set xmlhttp1 = Server.CreateObject("Msxml2.ServerXMLHTTP")
xmlhttp1.Open "POST",URL, False 
xmlhttp1
.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" 
xmlhttp1.setRequestHeader "Content-Length", "11024"
xmlhttp1.Send("identificador=111&password=111") 
'PAra manipular los datos :

Código PHP:
repuperamos y manipulamos el objeto XML
Set objetoXML 
= Server.CreateObject("Microsoft.XMLDOM")
Set objLst = Server.CreateObject("Microsoft.XMLDOM")
objetoXML.loadXML xmlhttp1.responseXML.xml
Set objLst 
= objetoXML.getElementsByTagName("*")
For 
i = 0 to (objLst.length)-1
If objLst.item(i).nodeName = "idf" Then
StrDate 
= objLst.item(i).text
response
.write "-->"&StrDate
Exit For
End If
Next 
__________________
---Nuestra recompensa se encuentra en el esfuerzo y no en el resultado. Un esfuerzo total es una victoria completa.-- GHANDI