[mapguide-commits] r5054 - trunk/MgDev/Server/src/Wms

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sun Jul 25 23:22:23 EDT 2010


Author: liuar
Date: 2010-07-26 03:22:22 +0000 (Mon, 26 Jul 2010)
New Revision: 5054

Modified:
   trunk/MgDev/Server/src/Wms/1.3.0.xml.awd
   trunk/MgDev/Server/src/Wms/OgcWmsService.config.awd
Log:
In WMS 1.3.0 specification section 7.3.3.11 defines the Exceptions in WMS 
service. 

There are 3 kinds of exception formats defined in this section: XML, INIMAGE and 
BLANK. The XML is a mandatory format and the other two are optional. The default 
value is "XML" if this parameter is absent from the request.

XML (mandatory)
Errors are reported using service exception XML. This is the default exception 
format if none is specified in the request. The remaining exception formats are 
optional. A server may issue a service exception in the default XML format if
a request specifies a different exception format not supported by the server.

INIMAGE (optional)
If the EXCEPTIONS parameter is set to INIMAGE, the WMS shall, upon detecting an 
error, return an object of the MIME type specified in the FORMAT parameter whose 
content includes text describing the nature of the error. In the case of a 
picture format, the error message shall be drawn on the returned picture. In the 
case of a graphic element format, the text of the error message shall be 
rendered in the manner that text is normally represented in that format.

BLANK (optional)
If the EXCEPTIONS parameter is set to BLANK, the WMS shall, upon detecting an 
error, return an object of the type specified in FORMAT whose content is 
uniformly ?\226?\128?\156off?\226?\128?\157. In the case of a picture format, that response shall be
an image containing only pixels of one color (the background color). In the case 
of a picture format supporting transparency, if TRANSPARENT=TRUE is specified 
the pixels shall all be transparent. 

NONE: MapGuide only support XML currently.


Modified: trunk/MgDev/Server/src/Wms/1.3.0.xml.awd
===================================================================
--- trunk/MgDev/Server/src/Wms/1.3.0.xml.awd	2010-07-23 14:39:21 UTC (rev 5053)
+++ trunk/MgDev/Server/src/Wms/1.3.0.xml.awd	2010-07-26 03:22:22 UTC (rev 5054)
@@ -396,7 +396,7 @@
   Exception format - XML
 
 -->
-<Response request="Exception" content-type="text/xml">
+<Response request="Exception" content-type="XML">
 <ServiceExceptionReport version="&TemplateVersion;">
  <ServiceException code="&Exception.Type;">
   &Exception.message;

Modified: trunk/MgDev/Server/src/Wms/OgcWmsService.config.awd
===================================================================
--- trunk/MgDev/Server/src/Wms/OgcWmsService.config.awd	2010-07-23 14:39:21 UTC (rev 5053)
+++ trunk/MgDev/Server/src/Wms/OgcWmsService.config.awd	2010-07-26 03:22:22 UTC (rev 5054)
@@ -190,6 +190,10 @@
    <item>application/vnd.ogc.se_blank</item>
    <item>text/html</item>
    <item>text/plain</item>
+   <item>XML</item>
+   <item>INIMAGE</item>
+   <item>BLANK</item>
+
  </Define>
 
 



More information about the mapguide-commits mailing list