<?php /* * PHP SOAP - How to create a SOAP Server and a SOAP Client */ $options = array('location' => 'http://localhost/gjsoap/bsoapserver.php', 'uri' => 'http://localhost/'); //create an instante of the SOAPClient (the API will be available) $api = new SoapClient(NULL, $options); //call an API method echo $api->hello();
<?php ini_set("soap.wsdl_cache_ttl", 1); $client = new SoapClient("http://localhost/github/PGROU/testsCedric/testWS/test.wsdl"); $var = "Machine"; $res = $client->hello(new SoapParam($var, "name")); print $res . "<br/>\n";