Source

Web Services Tutorial Code / public / soap / soap-demo.php

Full commit
<?php

$options = array('uri' => 'http://api.local',
    'location' => 'http://api.local/soap/');
$client = new SoapClient(NULL, $options);

$name = $client->thinkOfAName();
echo $name;