Talk:Version response: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
No edit summary
No edit summary
Line 14: Line 14:
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.
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'':
'''Notes''':
# The order of the elements at the top-level doesn't matter, so the top-level enclosing element has been removed.
# The order of the elements at the top-level doesn't matter, so the top-level enclosing element has been removed.
# 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:24, 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"?>
<Hyrax version="1.4.0"/>
<DAP version="3.2"/>           <!-- Only show the highest version -->
<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"/>

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:

  1. The order of the elements at the top-level doesn't matter, so the top-level enclosing element has been removed.
  2. 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).