Opened 19 years ago

Closed 17 years ago

#967 closed defect (wontfix)

add generic Exception handler for supported OWS types

Reported by: tomkralidis Owned by: mapserverbugs
Priority: high Milestone: 4.6 release
Component: WMS Server Version: unspecified
Severity: normal Keywords:
Cc:

Description

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)

by tomkralidis, 19 years ago

Attachment: se.c added

initial code for handling OGC Service Exceptions

comment:1 by dmorissette, 19 years ago

Milestone: 4.4 release
Status: newassigned
Tom, if we add this to 4.4 then are you willing to test with the various specs?
If not then I think we'll have to move this to post-4.4 since this is lower
priority and there are bigger bugs to kill.

comment:2 by tomkralidis, 19 years ago

Yes, I agree to help test.  Let me know what I can do.

comment:3 by dmorissette, 19 years ago

Thanks Tom. We'll let you know once the new exception function is in an ready to
be tested.

comment:4 by tomkralidis, 19 years ago

Milestone: 4.4 release4.6 release
Speaking with Daniel, we agreed to set this to 4.6.

comment:5 by tomkralidis, 19 years ago

Should we set to 4.8?

comment:6 by tomkralidis, 17 years ago

Resolution: wontfix
Status: assignedclosed
I'm closing this one in the name of bug 1954.
Note: See TracTickets for help on using tickets.