1

Re: TaxonomySearchRequest - wellFormed or not

Hi

I have been revising my PHP code for the Taxonomy web service and had decided not to include information that is badly formed (i.e. may have errors in it). I assumed that I should not be searching on the basis of badly formed TVKs.

The reason I ask, is that I have found that my searches for some species return a Taxon Version Key but no name (not even scientific) because it is "badly formed".

For example the response for Hypera meles is:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
  <nbntq:TaxonomySearchList xmlns:nbntq="http://webservices.searchnbn.net/taxonomyData" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://212.219.37.104/NBNWebServices/ws/taxonomy/schema/data">
  <nbntq:Taxon taxonVersionKey="NBNSYS0000025215">
   <nbntq:TaxonName isPreferredName="true" isScientific="true" wellFormed="false">Hypera meles</nbntq:TaxonName>
   <nbntq:Authority>(F., 1792)</nbntq:Authority>
   <nbntq:TaxonReportingCategory>insect - beetle (Coleoptera)</nbntq:TaxonReportingCategory>
  </nbntq:Taxon>
</nbntq:TaxonomySearchList>
</soapenv:Body></soapenv:Envelope>

i.e. the name (Scientific name) is badly formed

Am I incorrect in making the assumption not to include records that are not "well formed"? Or is this an error in the dictionary?

Any help would be much appreciated.

P.S. If anybody needs help with the PHP code for this, give me a shout

Cheers

Nick

(ePlanning Project Manager) Aberdeenshire Council