Re: Is taxonomy search in WSDL?
I have just been trying to access the taxonomy search service through PHP using the following code:
<?php
//ESTABLISH SOAP CONNECTION
require_once('lib/nusoap.php');
$client = new soapclient('http://212.219.37.104/NBNWebServices/ws/WSDL', 'wsdl');
if($client->fault){
echo "FAULT: <p>Code: {$client->faultcode} >br />";
echo "String: {$client->faultstring} </p>";
}
//DEFINE QUERY TO NBN GATEWAY
if($_GET[searchTerm] != '') {
$query1 = '<TaxonomySearchRequest xmlns="http://webservices.searchnbn.net/taxonomyQuery">
<SpeciesName xsi:type="q1:TaxonName">'.$_GET[searchTerm].'</SpeciesName>
</TaxonomySearchRequest>';
print $query1;
//SEND REQUEST AND GET THE RESPONSE BACK
$response = $client->call("GetTaxonomySearch", $query1);
print $reponse;
} else {
$response = '';
}
?>
but am getting absolutely nothing back. Having looked at the WSDL the GetTaxonomySearch does not appear in the file. Is this why this is not working?
Steve