Soy nuevo en soapclient, he intentado hacer un poco de estudio en línea y también intenté codificar en jabón, pero parece que esto todavía no funciona para mí, solo vagando por aquí puede señalar y quizás Dame un ejemplo de cómo puedo usar el jabón para obtener los comentarios del siguiente servidor web.Cómo hacer SoapClient en php
POST /webservices/tempconvert.asmx HTTP/1.1
Host: www.w3schools.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/CelsiusToFahrenheit"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CelsiusToFahrenheit xmlns="http://tempuri.org/">
<Celsius>string</Celsius>
</CelsiusToFahrenheit>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CelsiusToFahrenheitResponse xmlns="http://tempuri.org/">
<CelsiusToFahrenheitResult>string</CelsiusToFahrenheitResult>
</CelsiusToFahrenheitResponse>
</soap:Body>
</soap:Envelope>
<?php
$url = "http://www.w3schools.com/webservices/tempconvert.asmx?WSDL";
$client = new SoapClient($url);
?>
¿Qué debo hacer para los próximos pasos para que pueda obtener la respuesta?
@Pascal MARTIN eres el superhombre ... gracias por el ejemplo ... ahora sé mucho mejor cómo funciona el soapclient. GRACIAS :) –
De nada :-) Diviértase! –
Estoy enfrentando algún problema para saop otra vez ... ¿no estoy seguro de si sabes lo que está pasando mal con mi código? Por favor clikc en este enlace para el problema http://stackoverflow.com/questions/2619519/soap-client-not-working-in-php gracias –