Talk:Version response: Difference between revisions
From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
<pre> | <pre> | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<Hyrax version="1.4.0"/> | <DAP-Version> | ||
<DAP version="3.2"/ | <Hyrax version="1.4.0"/> | ||
<BES version="3.6.2" name="bes" prefix"/"> | <DAP version="3.2"/> | ||
<BES version="3.6.2" name="bes" prefix"/"> | |||
<module name="hdf4_handler" version="3.7.9"/> | |||
<module name="netcdf_handler" version="3.7.8"/> | |||
</BES> | ... | ||
<OLFS version="1.4.0"/> | </BES> | ||
<OLFS version="1.4.0"/> | |||
</DAP-Version> | |||
</pre> | </pre> | ||
Line 15: | Line 17: | ||
'''Notes''': | '''Notes''': | ||
# The order of the elements at the top-level doesn't matter | # The order of the elements at the top-level doesn't matter. | ||
# The DAP protocol included is the highest version only - most clients will not parse this looking for version numbers since client writers rarely do that stuff and servers SHOULD provide backwards compatibility. In the worst case, a server that advertises DAP 3.2 will return Error responses for a client that says it can only understand a lower version of the DAP (e.g., 2.0). | # The DAP protocol included is the highest version only - most clients will not parse this looking for version numbers since client writers rarely do that stuff and servers SHOULD provide backwards compatibility. In the worst case, a server that advertises DAP 3.2 will return Error responses for a client that says it can only understand a lower version of the DAP (e.g., 2.0). |
Revision as of 22:27, 29 July 2008
I think the DAP 3.1 Version response XML should be changes to look like:
<?xml version="1.0" encoding="UTF-8"?> <DAP-Version> <Hyrax version="1.4.0"/> <DAP version="3.2"/> <BES version="3.6.2" name="bes" prefix"/"> <module name="hdf4_handler" version="3.7.9"/> <module name="netcdf_handler" version="3.7.8"/> ... </BES> <OLFS version="1.4.0"/> </DAP-Version>
Why the condensed form? It's easier to read and holds virtually all the same information. Most 'users' of this will be people, like us, trying to debug a server and interested in the versions of software it includes. For users that are machines, it's easy to write a SAX parser (or use a simple string search) to find the DAP protocol number.
Notes:
- The order of the elements at the top-level doesn't matter.
- The DAP protocol included is the highest version only - most clients will not parse this looking for version numbers since client writers rarely do that stuff and servers SHOULD provide backwards compatibility. In the worst case, a server that advertises DAP 3.2 will return Error responses for a client that says it can only understand a lower version of the DAP (e.g., 2.0).