PHP/Web Services SOAP WSDL/SOAP Message

Материал из Web эксперт
Перейти к: навигация, поиск

Trace soap message

<?php
   $ws = "http://www.xmethods.net/sd/2001/TemperatureService.wsdl";
   $zipcode = "23590";
   $client = new SoapClient($ws,array("trace" => 1));
   $temperature = $client->getTemp($zipcode);
   echo htmlspecialchars($client->__getLastRequest());
?>