I am using a web service which works fine when I call a method with no parameters but when I try to call a function an dpass parameters to it I get the following error.
Fatal error: Uncaught SoapFault exception: [HTTP] Internal Server Error in C:\Program Files\Apache Group\Apache2\htdocs\index.php:28 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://grid.bod...', '', 1, 0) #1 [internal function]: SoapClient->__call('searchVocab', Array) #2 C:\Program Files\Apache Group\Apache2\htdocs\medin_metadata\web_services\tutorial.php(28): SoapClient->searchVocab(Array) #3 {main} thrown in C:\Program Files\Apache Group\Apache2\htdocs\medin_metadata\web_services\tutorial.php on line 10
This is my code
<?php
$client = new SoapClient("http://vocab.ndg.nerc.ac.uk/VocabServerAPI.wsdl", array('trace' => 1));
$search_params = array();
$search_params['listKey'] = 'PO21';
$search_params['searchTerm'] = '*emperature*';
$search_params['termType'] = 'short';
$search_vocab = $client->searchVocab($search_params);
echo "<p><pre>" . htmlspecialchars($client->__getLastRequest()) . "</pre></p>";
?>
This is what the web service documentation has to say on the function
http://www.bodc.ac.uk/products/web_services/vocab/methods.html#searchvocab
Can anyone give me a clue as to where I am going wrong? Thanks for any help