'http://localhost/farid/soap/server.php', 'uri' => 'http://localhost/farid/soap/'); //create an instante of the SOAPClient (the API will be available) $api = new SoapClient(NULL, $options); //call an API method echo $api->test(); ?>