[OpenLayers-Trac] Re: [OpenLayers] #2234: We need a format to read OGC's ServiceExceptionReport

OpenLayers trac-20090302 at openlayers.org
Wed Jun 15 07:34:04 EDT 2011


#2234: We need a format to read OGC's ServiceExceptionReport
------------------------------+---------------------------------------------
  Reporter:  fvanderbiest     |       Owner:  bartvde     
      Type:  feature          |      Status:  closed      
  Priority:  minor            |   Milestone:  2.12 Release
 Component:  Format           |     Version:  2.8         
Resolution:  fixed            |    Keywords:              
     State:  Needs More Work  |  
------------------------------+---------------------------------------------

Comment(by bartvde):

 Hi Andreas, thanks for the comment. However that's not why these tests
 were failing, they are however valid reasons for that code statement to
 fail as well.

 The root problem in this case was that those WFS Capabilities tests have
 incomplete GetCapabilities XML snippets:

 {{{
 Engine name: Xerces
 Severity: error
 Description: cvc-complex-type.2.4.b: The content of element
 'wfs:WFS_Capabilities' is not complete. One of
 '{"http://www.opengis.net/ows":ServiceIdentification,
 "http://www.opengis.net/ows":ServiceProvider,
 "http://www.opengis.net/ows":OperationsMetadata,
 "http://www.opengis.net/wfs":FeatureTypeList,
 "http://www.opengis.net/wfs":ServesGMLObjectTypeList,
 "http://www.opengis.net/wfs":SupportsGMLObjectTypeList,
 "http://www.opengis.net/ogc":Filter_Capabilities}' is expected.
 Start location: 2:2
 End location: 2:22
 URL: http://www.w3.org/TR/xmlschema-1/#cvc-complex-type
 }}}

 Since the WFS capabilities parser checks for the service attribute to be
 equal to "WFS" (I could not come up with a better check at the time) in
 order to see if an exception occurred, it runs into the code block for
 parsing the exception:

 {{{
         if (capabilities.service === undefined) {
             // an error must have happened, so parse it and report back
             var format = new OpenLayers.Format.OGCExceptionReport();
             capabilities.error = format.read(data);
         }
 }}}

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2234#comment:11>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list