<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html;charset=iso-8859-1'>
<style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
</head>
<body>
Hi Bart,<br><br>I opened a ticket:<br>http://trac.osgeo.org/mapserver/ticket/3447<br><br>Roy<br><br><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid rgb(0, 0, 255); margin-right: 0px;"><hr><b>From:</b> bartvde@osgis.nl<br><b>To:</b> Roy Braam [mailto:roybraam@b3partners.nl]<br><b>Cc:</b> Rahkonen Jukka [mailto:jukka.rahkonen@mmmtike.fi], mapserver-users@lists.osgeo.org<br><b>Sent:</b> Tue, 04 May 2010 10:52:20 +0200<br><b>Subject:</b> Re: [mapserver-users] invalid schema location?<br><br>Hi Roy,<br>
<br>
I can confirm the issue with Xerces. It should be as simple as replacing<br>
the space with %20 or not?<br>
<br>
Fatal Error at (file stdin, line 8, char 361): The schemaLocation<br>
attribute does not contain pairs of values.<br>
<br>
Can you open up a ticket in the Mapserver Trac?<br>
<br>
Best regards,<br>
Bart<br>
<br>
> Thanks,<br>
><br>
> I tested it, but with a post message and a GetFeature as xml body<br>
> mapserver keeps responding with a invalid schema (with spaces).<br>
> Even without a outputformat in the getFeature.<br>
> Is this bug going to be solved in a next version of mapserver?<br>
><br>
> Roy<br>
><br>
><br>
> _____<br>
><br>
> From: Rahkonen Jukka [mailto:<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>]<br>
> To: Roy Braam [mailto:<a href="mailto:roybraam@b3partners.nl">roybraam@b3partners.nl</a>],<br>
> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> Sent: Mon, 26 Apr 2010 15:27:48 +0200<br>
> Subject: Re: [mapserver-users] invalid schema location?<br>
><br>
><br>
> Hi,<br>
><br>
> I inspired to compare how Mapserver and Geoserver are handling this<br>
> thing. At least I can say that they are doing thing in a bit different<br>
> way, and Geoserver is creating alwayd the DescribeFeatureType URL in the<br>
> GetFeature output without OUTPUTFORMAT.<br>
><br>
><br>
> GEOSERVER<br>
> ==========<br>
><br>
> - GetFeature with WFS version 1.1.0 and outputformat=gml2<br>
> -> RESULT schema location contains<br>
> "...geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=..."<br>
><br>
> So the GetFeature was done with version 1.1.0 but the URL to schema<br>
> location is containing "version=1.0.0", and because WFS 1.0.0 default is<br>
> gml2 this is giving a correct schema.<br>
><br>
><br>
> - GetFeature with WFS version 1.1.0 and outputformat=text/xml;<br>
> subtype=gml/3.1.1<br>
> -> RESULT schema location contains<br>
> "...geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=..."<br>
><br>
> Now the schema location URL is using "version=1.1.0" which defaults to<br>
> gml3.1.1 and schema is correct.<br>
><br>
><br>
> MAPSERVER<br>
> ==========<br>
><br>
> On the other hand, Mapserver version 5.2.1 behaves this way<br>
><br>
> GetFeature request wioth WFS version 1.1.0 and outputformat=gml2<br>
> (here is part of my test request literally:<br>
> &service=wfs&version=1.1.0&request=getfeature&typeName=test&maxfeatures=2&OUTPUTFORMAT=gml2)<br>
><br>
> -> RESULT schema location contains<br>
> /cgi-bin/wfstest?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=test&OUTPUTFORMAT=XMLSCHEMA"><br>
><br>
> Running this DescribeFeatureType query returns schema with reference to<br>
> "<a href="http://schemas.opengis.net/gml/2.1.2/feature.xsd%22" target="_blank">http://schemas.opengis.net/gml/2.1.2/feature.xsd"</a><br>
> Features in the GetFeature are in gml2 format.<br>
> I suppose this is working OK.<br>
><br>
><br>
> Request WFS version 1.1.0 and outputformat=text/xml; subtype=gml/3.1.1<br>
> (&service=wfs&version=1.1.0&request=getfeature&typeName=test&maxfeatures=2&OUTPUTFORMAT=text/xml;<br>
> subtype=gml/3.1.1)<br>
><br>
> This does not work at all for me. Mapserver is returning features in<br>
> gml2 format with this parameter, even if I am specially asking for<br>
> gml3.1.1<br>
><br>
><br>
> Request WFS version 1.1.0 and without using outputformat at all (WFS<br>
> 1.1.0 default is text/xml; subtype=gml/3.1.1)<br>
><br>
> - > schema location contains<br>
> cgi-bin/wfstest?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=test&OUTPUTFORMAT=text/xml;<br>
> subtype=gml/3.1.1<br>
><br>
> Running this query returns schema with reference to<br>
> "<a href="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd%22" target="_blank">http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"</a><br>
> Features in the GetFeature are in gml 3.1.1. format.<br>
> I suppose this is working OK. However, Mapserver does not need<br>
> OUTPUTFORMAT parameter here but the result is the same even if I leave<br>
> it out.<br>
><br>
> -Jukka Rahkonen-<br>
><br>
><br>
><br>
><br>
> _____<br>
><br>
><br>
> Lähettäjä: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>
> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] Puolesta Roy Braam<br>
> Lähetetty: 26. huhtikuuta 2010 14:26<br>
> Vastaanottaja: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> Aihe: [mapserver-users] invalid schema location?<br>
><br>
><br>
> Hello List,<br>
><br>
> When i do a WFS getFeature request mapserver returns a xml that starts<br>
> with:<br>
><br>
> <?xml version='1.0' encoding="ISO-8859-1" ?><br>
> <wfs:FeatureCollection<br>
> xmlns:ms="<a href="http://mapserver.gis.umn.edu/mapserver%22" target="_blank">http://mapserver.gis.umn.edu/mapserver"</a><br>
> xmlns:gml="<a href="http://www.opengis.net/gml%22" target="_blank">http://www.opengis.net/gml"</a><br>
> xmlns:wfs="<a href="http://www.opengis.net/wfs%22" target="_blank">http://www.opengis.net/wfs"</a><br>
> xmlns:ogc="<a href="http://www.opengis.net/ogc%22" target="_blank">http://www.opengis.net/ogc"</a><br>
> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance%22" target="_blank">http://www.w3.org/2001/XMLSchema-instance"</a><br>
> xsi:schemaLocation="<a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a><br>
> <a href="http://server.nl/geoservices/aankoopgebieden?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=LL&OUTPUTFORMAT=text/xml;" target="_blank">http://server.nl/geoservices/aankoopgebieden?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=LL&OUTPUTFORMAT=text/xml;</a><br>
> subtype=gml/3.1.1 <a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a><br>
> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd%22" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"</a><br>
> numberOfFeatures="16"><br>
> <gml:boundedBy><br>
><br>
> If i read this site:<br>
> <a href="http://www.w3.org/TR/xmlschema-0/#schemaLocation" target="_blank">http://www.w3.org/TR/xmlschema-0/#schemaLocation</a><br>
><br>
> the schema locations needs to be "pairs of URI references, separated<br>
> by white space".<br>
> Because the OUTPUTFORMAT="text/xml; subtype=gml/3.1.1" a space is in<br>
> the url of the first pair in my example.<br>
> 1) spaces are not valid in URLS??<br>
> 2) you don't have pairs anymore. You have a odd number of values if<br>
> you separate by space...<br>
><br>
> So, is mapserver generating a invalid XML?? Or i'm doing something<br>
> wrong....<br>
><br>
> Version of mapserver = 5.6.3<br>
><br>
> Roy _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
><br>
<br>
<br>
</blockquote><style>
</style>
</body></html>