<? $client = new SoapClient("http://nbrb.by/Services/ExRates.asmx?WSDL", array( "trace" => 1, "exceptions" => 0 )); $curs = $client->ExRatesDyn(getSOAPDate(time())); print_r($curs); function getSOAPDate($timeStamp, $withTime = true) { $soapDate = date("Ymd", $timeStamp); return ($withTime) ? $soapDate . "T" . date("H:i:s", $timeStamp) : $soapDate . "T00:00:00"; } ?>
With this code I tried to get xml with currency rates, but I got a fig. Although other methods work on the same service. Where there is no date as a parameter.