GetCapabilities

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Wed Sep 29 11:24:41 PDT 2004


> -----Original Message-----
> From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of 
> Kralidis,Tom [Burlington]
> Sent: Wednesday, 29 September, 2004 14:23
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] GetCapabilities
> 
> 
> > -----Original Message-----
> > From: David Zwiers [mailto:dzwiers at refractions.net]
> > Sent: Wednesday, 29 September, 2004 14:17
> > To: Kralidis,Tom [Burlington]
> > Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> > Subject: RE: [UMN_MAPSERVER-USERS] GetCapabilities
> > 
> > 
> > Tom,
> > 
> > My comment was more to the effect that I believe some
> > attributes are missing in the documents returned. The current 
> > implementation has this as the first element:
> > 
> > <WFS_Capabilities version="1.0.0" updateSequence="0"
> > xsi:schemaLocation="http://www.opengis.net/wfs
> > http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd">
> > 
> > but I believe that since both the default namespace has not
> > been set, and the xsi namespace has not been set, the 
> > schemaLocation attribute is meaningless to a generic parser. 
> > I also do not believe that the capabilities document would validate.
> > 
> 
> Both WMS targets use MapServer 4.2.0, and both define the xsi 
> namespace,
> as well as http://www.opengis.net as the default namespace of the
> document, as well as the xsi:schemaLocation directive properly.
> 

Whoops, I meant http://www.opengis.net/wfs as the default namespace.

> Both documents validate fine.  If you're debugging looking at response
> through something like Mozilla, you may want to "view source" 
> to see the
> XML response in its entirety.
> 
> Cheers
> 
> ..Tom
> 
> 
> 
> > My recommendation is to add the the following two attributes 
> > to have the element looks like this:
> > 
> > <WFS_Capabilities version="1.0.0" updateSequence="0" 
> > xmlns="http://www.opengis.net/wfs"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://www.opengis.net/wfs
> > http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd">
> > 
> > Yours, 
> > 
> > David
> > 
> > On Wed, 2004-09-29 at 10:51, Kralidis,Tom [Burlington] wrote:
> > > The default namespace is http://www.opengis.net/wfs
> > > 
> > > 
> > > 
> > > > -----Original Message-----
> > > > From: UMN MapServer Users List
> > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Zwiers
> > > > Sent: Wednesday, 29 September, 2004 13:37
> > > > To: MAPSERVER-USERS at LISTS.UMN.EDU
> > > > Subject: [UMN_MAPSERVER-USERS] GetCapabilities
> > > > 
> > > > 
> > > > Hello List
> > > > 
> > > > Apologies in advance if this is an older bug, but I couldn't
> > > > find it in your bug tracker. I am creating a WFS client, and 
> > > > selected your WFS as one of my victims :).  When reading the 
> > > > capabilities document, you have forgotten to declare the 
> > > > default namespace on the server instances I have seen 
> > > > (included below).
> > > > 
> > > > I was wondering if these servers are out of date, and if so
> > > > where I could find a demo server to test against. (BTW the 
> > > > code is freely available in the geotools project).
> > > > 
> > > > Thanks in advance,
> > > > 
> > > > David Zwiers
> > > > 
> > > 
> > http://map.ns.ec.gc.ca/MapServer/mapserv.exe?>
> map=/mapserver/services/e
> > > nv
> > > dat/config.map&service=WFS&version=1.0.0&request=GetCapabilities
> > > 
> > > 
> > http://excise.pyr.ec.gc.ca/cgi->
> bin/mapserv.exe?map=/LocalApps/Mapsurfe
> > > r/
> > > PYRWQMP.map&version=1.0.0&service=WFS&request=GetCapabilities
> > 
> > 
> 



More information about the MapServer-users mailing list