Sono nuovo in soapclient, ho provato a fare qualche studio online e ho anche provato a scrivere sul sapone, ma sembra che questo non funzioni ancora per me, solo vagabondare chiunque qui può indicare e forse dammi un esempio come posso usare effettivamente il soapclint per ottenere il feedback dal seguente server web?Come fare SoapClient su 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);
?>
Cosa devo fare per i passaggi successivi in modo che possa ottenere la risposta ??
@Pascal MARTIN sei il superuomo ... grazie per l'esempio ... ora so molto meglio come funziona il sapone. GRAZIE :) –
Prego :-) Buon divertimento! –
Affronto di nuovo un problema per il saop di nuovo ... non sono sicuro che tu sappia cosa sta andando storto con il mio codice? Si prega di clikc su questo collegamento per il problema http://stackoverflow.com/questions/2619519/soap-client-not-working-in-php ringraziamenti –