Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // include the SOAP classes
- require_once('lib/nusoap.php');
- $hourdiff = "8"; // hours diff btwn server and local time
- $melbdate = date("l, d F Y h:i a",time() + ($hourdiff * 3600));
- print ("$melbdate");
- $today1 = date("d.m.Y",time() + ($hourdiff * 3600));
- echo $today1;
- $today = date("d.m.Y");
- $thedate= $today1;
- //$day=date(d);
- //$month=date(m);
- //$year=date(Y);
- //$thedate= $day.".".$month.".".$year;
- //echo $thedate."<br>";
- $param1=$thedate;
- $param2=$thedate;
- echo "<br />";
- print_r($param1);
- echo "<br />";
- // define parameter array (ISBN number)
- $param = array('StartDate'=>$param1, 'EndDate'=>$param2);
- $endpoint_path = 'http://www.nbrm.mk/klservice/kurs.asmx?WSDL';
- // define path to server application (the true parameter is absolutely crucial)
- $client = new nusoap_client($endpoint_path, true);
- // make the call
- $result = $client->call('GetExchangeRate', $param);
- foreach ($result as $value) {
- echo '<pre>'.$value.'</pre>';
- }
- //echo "REQUEST:\n" . $client->__getLastRequest() . "\n";
- echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
- echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
- echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement