webservice.php 594 B

12345678910111213141516
  1. <?php
  2. $wsdl = "http://".$_SERVER['HTTP_HOST']."/wshelper/service.php?class=contactManager&wsdl";
  3. echo "<strong>WSDL file:</strong> ".$wsdl."<br>\n";
  4. $options = Array('actor' =>'http://schema.jool.nl',
  5. 'trace' => true);
  6. $client = new SoapClient($wsdl,$options);
  7. echo "<hr> <strong>Result from getContacts call:</strong><br>";
  8. $res = $client->getContacts();
  9. print_r($res);
  10. echo "<hr><strong>Raw Soap response:</strong><br>";
  11. echo htmlentities($client->__getLastResponse());
  12. echo "<hr><strong>SoapFault asking for an unknown contact:</strong><br>";
  13. $client->getContact(1);
  14. ?>