[webservices] station and SelectedNumberStations out of order

Philip Crotwell crotwell at seis.sc.edu
Wed Jul 13 10:08:15 PDT 2011


Hi

The StationXML schema says that the Network element should be a sequence of:
   StartDate
   EndDate
   Description
   TotalNumberStations
   SelectedNumberStations
   Station
   ...
   Station

However, the current iris station web service currently sends back
   StartDate
   EndDate
   Description
   TotalNumberStations
   Station
   ...
   Station
   SelectedNumberStations

which makes the resulting XML document invalid. This is kind of a pain
if you actually go to the trouble of validating the document before
parsing (sometimes a good idea) but also the "SelectedNumberStations"
element is kind of pointless in that the client has already parsed all
the station elements by that point and so already knows how many there
are.

At any rate, this out of order causes an error in my seisFile library
as it doesn't expect to find elements inside a Network element after
the Station elements. The result is that only one network in the file
is parsed and all further ones are ignored.

thanks,
Philip


More information about the webservices mailing list