MapServer / MapServer-import

3 stars 2 forks source link

[OGC:SOS] Exception fixes namespaces / elements #1740

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: tomkralidis Date: 2006/04/06 - 04:26

1./

When throwing a ServiceException in SOS, the ows:Exception element MUST have an
attribute called exceptionCode, which is defined by OWS Common as:

"A code representing the type of this exception, which shall be selected from a
set of exceptionCode values specified for the specific service operation and
server."

For now, you can put "MS_FAILURE", or if a numerical exception value exists in
the mapserver process, use that.

So, an example would be:

  <ows:Exception exceptionCode="MS_FAILURE">

NB: you don't need to define the ows namespace in this element (as in the code).
 It's already defined in the root element.

Also, all OWS Common namespaces should be def'd as:

http://www.opengis.net/ows

NOT

http://www.opengeospatial.net/ows
tbonfort commented 12 years ago

Author: tomkralidis Date: 2006/10/13 - 19:51


Any update on this one?

Note that in the SOS spec, we couldn't find applicable exceptionCode
enumerations, so if we could (for now), put in some sort of error code, that
would be great, as the response will then validate.
tbonfort commented 12 years ago

Author: tomkralidis Date: 2006/10/16 - 04:08

Note: it turns out that the SOS spec reverts to clause 8 of OWS Common for
exceptionCode enumerations.

I've made some local changes to mapogcsos.c (can post or send to Assefa).

I've made msSOSException a 3 argument function, where the 3rd argument is a
string as per clause 8 of OWS Common, and have changed all the function calls to
pass the appropriate clause 8 value.
tbonfort commented 12 years ago

Author: tomkralidis Date: 2006/10/16 - 20:21


fixed in CVS.