add generic Exception handler for supported OWS types
Hi,
We're having multiple outputs of OGC Service Exceptions in WMS,WFS and WCS code.
I'd like to propose the idea of a single function (maybe in mapows.c) :
msOWSPrintServiceException()
...which gets called appropriately by WMS, WFS, WCS.
This will apply to MapServer support of:
OGC:WMS (1.1.1, 1.1.0, 1.0.0)
OGC:WFS (1.0.0)
OGC:WCS (1.0.0)
Below is an analysis of each version of each spec w.r.t. how Exception XML is
marshalled:
WMS
1.0.0
- no DTD defined
- MIME type: text/xml
- example:
<WMTException version="1.0.0 >
[ERROR_MESSAGE]
</WMTException>
1.1.0
- DTD: <schemaLocation>/wms/1.1.0/exception_1_1_0.dtd
- MIME type: application/vnd.ogc.se_xml
- example:
<!DOCTYPE ServiceExceptionReport SYSTEM
"[ows_schemas_location]/wms/1.1.0/exception_1_1_0.dtd">
<ServiceExceptionReport version="1.1.0">
<ServiceException>[ERROR_MESSAGE]</ServiceException>
</ServiceExceptionReport>
1.1.1
Same as 1.1.0, but all strings "1.1.0" must be "1.1.1
WFS
1.0.0
- XSD: uses http://schemas.opengeospatial.net/wms/1.1.1/OGC-exception.xsd
- MIME type: text/xml
- example:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
[ows_schemas_location]/wfs/1.0.0/exception.xsd">
<ServiceException>[ERROR_MESSAGE]</ServiceException>
</ServiceExceptionReport>
WCS
1.0.0
- XSD? The one in the annex is the same as:
http://schemas.opengeospatial.net/wms/1.1.1/OGC-exception.xsd, but not
referenced in http://schemas.opengeospatial.net/wcs/1.0.0/, so we can use the
WMS one to point to for now
- MIME type: application/vnd.ogc.se_xml
<?xml version="1.0" encoding="UTF-8"?>
<ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
[ows_schemas_location]/wcs/1.0.0/exception.xsd">
<ServiceException>[ERROR_MESSAGE]</ServiceException>
</ServiceExceptionReport>
Attachments
(1)
- se.c
(2.0 KB
) - added by tomkralidis 19 years ago.
- initial code for handling OGC Service Exceptions
Download all attachments as:
.zip
Change History
(7)
Milestone: |
→ 4.4 release
|
Status: |
new → assigned
|
Milestone: |
4.4 release → 4.6 release
|
Resolution: |
→ wontfix
|
Status: |
assigned → closed
|
initial code for handling OGC Service Exceptions