Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/03/2016, 05:32
javiermartinezjuanas
 
Fecha de Ingreso: marzo-2016
Mensajes: 1
Antigüedad: 8 años, 2 meses
Puntos: 0
Pregunta Consumir un web service .net desde PHP

Hola buenas,

es la primera vez que me toca trabajar con web services. En este caso tenemos que consumir un web service .net desde php para automatizar una tienda de un cliente. Lo estoy intentando hacer con SoapClient pero no hay manera.

Adjunto un ejemplo de solicitud y respuesta del servicio web mediante SOAP 1.2

Me imagino que tiene que ser algo muy básico pero como no consigo recibir respuesta del webservice ¿Alguién me pueda ayudar?

Muchas gracias.
Saludos.

*** SOLICITUD ****
POST /apps/articulos/Verifica.asmx HTTP/1.1
Host: www.xxxxxxxx.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<ValidaUsuarioWSIP xmlns="http://www.xxxxxxxx.com/apps/articulos/Verifica.asmx">
<user>string</user>
<pass>string</pass>
<remote_ip>string</remote_ip>
</ValidaUsuarioWSIP>
</soap12:Body>
</soap12:Envelope>


**** RESPUESTA
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<ValidaUsuarioWSIPResponse xmlns="http://www.xxxxxxxx.com/apps/articulos/Verifica.asmx">
<ValidaUsuarioWSIPResult>
<IPOK>boolean</IPOK>
<USEROK>boolean</USEROK>
<PASSOK>boolean</PASSOK>
<IP>string</IP>
</ValidaUsuarioWSIPResult>
</ValidaUsuarioWSIPResponse>
</soap12:Body>
</soap12:Envelope>