<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 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>

<META content="MSHTML 6.00.2900.5945" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>I inspired to compare how Mapserver and Geoserver are 
handling this thing.&nbsp; At least I can say that they are doing thing in a bit 
different way, and&nbsp;</SPAN></FONT><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>Geoserver is creating alwayd the DescribeFeatureType 
URL in the GetFeature output&nbsp;without OUTPUTFORMAT.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>GEOSERVER</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>==========</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>- GetFeature with WFS version 1.1.0 and 
outputformat=gml2</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>&nbsp;-&gt; RESULT schema location contains 
"...geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;typeName=..."</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>So the GetFeature was done with version 1.1.0 but the 
URL to schema location is containing "version=1.0.0", and because WFS 1.0.0 
default is gml2 this is giving a correct schema.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>- GetFeature with WFS version 1.1.0 and 
outputformat=text/xml; subtype=gml/3.1.1</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>&nbsp;-&gt; RESULT schema location contains 
"...geoserver/wfs?service=WFS&amp;version=1.1.0&amp;request=DescribeFeatureType&amp;typeName=..."</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>Now the schema location URL is using "version=1.1.0" 
which defaults to gml3.1.1 and schema is correct.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>MAPSERVER</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>==========</SPAN></FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>On the other hand, Mapserver version 5.2.1 behaves this 
way</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>GetFeature request wioth WFS version 1.1.0 and 
outputformat=gml2</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>&nbsp;&nbsp;&nbsp; (here is part of my test request 
literally: 
&amp;service=wfs&amp;version=1.1.0&amp;request=getfeature&amp;typeName=test&amp;maxfeatures=2&amp;OUTPUTFORMAT=gml2)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>&nbsp;</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>-&gt; RESULT schema location contains 
</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>/cgi-bin/wfstest?SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=test&amp;OUTPUTFORMAT=XMLSCHEMA"&gt;</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>Running this DescribeFeatureType query returns schema 
with reference to "<A 
href="http://schemas.opengis.net/gml/2.1.2/feature.xsd">http://schemas.opengis.net/gml/2.1.2/feature.xsd</A>"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>Features in the GetFeature are in gml2 
format.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>I suppose this is working OK.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>Request WFS version 1.1.0 and outputformat=text/xml; 
subtype=gml/3.1.1</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>&nbsp;&nbsp;&nbsp;&nbsp; 
(&amp;service=wfs&amp;version=1.1.0&amp;request=getfeature&amp;typeName=test&amp;maxfeatures=2&amp;OUTPUTFORMAT=text/xml; 
subtype=gml/3.1.1)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>This does not work at all for me.&nbsp; Mapserver is 
returning features in gml2 format with this parameter, even if I am specially 
asking for gml3.1.1</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>Request WFS version 1.1.0 and without using 
outputformat at all (WFS 1.1.0 default is text/xml; 
subtype=gml/3.1.1)</SPAN></FONT></DIV>
<DIV dir=ltr align=left>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>- &gt; schema location contains</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>cgi-bin/wfstest?SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=test&amp;OUTPUTFORMAT=text/xml; 
subtype=gml/3.1.1&nbsp; </SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>Running this query returns schema with reference to "<A 
href="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd">http://schemas.opengis.net/gml/3.1.1/base/gml.xsd</A>"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>Features in the GetFeature are in gml 3.1.1. 
format.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>I suppose this is working OK.&nbsp; However, Mapserver 
does not need OUTPUTFORMAT parameter here but the result is the same even if I 
leave it out.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010>-Jukka Rahkonen-</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=012493112-26042010></SPAN></FONT></SPAN></FONT><FONT face=Arial 
color=#0000ff><SPAN class=012493112-26042010></SPAN></FONT>&nbsp;</DIV></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma><B>Lähettäjä:</B> 
mapserver-users-bounces@lists.osgeo.org 
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>Puolesta </B>Roy 
Braam<BR><B>Lähetetty:</B> 26. huhtikuuta 2010 14:26<BR><B>Vastaanottaja:</B> 
mapserver-users@lists.osgeo.org<BR><B>Aihe:</B> [mapserver-users] invalid schema 
location?<BR></FONT><BR></DIV></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>Hello List,<BR><BR>When i do a WFS getFeature request mapserver 
  returns a xml that starts with:<BR><BR>&lt;?xml version='1.0' 
  encoding="ISO-8859-1" ?&gt;<BR>&lt;wfs:FeatureCollection<BR>&nbsp;&nbsp; 
  xmlns:ms="http://mapserver.gis.umn.edu/mapserver"<BR>&nbsp;&nbsp; 
  xmlns:gml="http://www.opengis.net/gml"<BR>&nbsp;&nbsp; 
  xmlns:wfs="http://www.opengis.net/wfs"<BR>&nbsp;&nbsp; 
  xmlns:ogc="http://www.opengis.net/ogc"<BR>&nbsp;&nbsp; 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<BR>&nbsp;&nbsp; 
  xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver 
  http://server.nl/geoservices/aankoopgebieden?SERVICE=WFS&amp;amp;VERSION=1.1.0&amp;amp;REQUEST=DescribeFeatureType&amp;amp;TYPENAME=LL&amp;amp;OUTPUTFORMAT=text/xml; 
  subtype=gml/3.1.1&nbsp; http://www.opengis.net/wfs 
  http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" 
  numberOfFeatures="16"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;gml:boundedBy&gt;<BR><BR>If i read this 
  site:<BR>http://www.w3.org/TR/xmlschema-0/#schemaLocation<BR><BR>the schema 
  locations needs to be "pairs of URI references, separated by white 
  space".<BR>Because the OUTPUTFORMAT="text/xml; subtype=gml/3.1.1" a space is 
  in 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 
  you separate by space...<BR><BR>So, is mapserver generating a invalid XML?? Or 
  i'm doing something wrong....<BR><BR>Version of mapserver = 
5.6.3<BR><BR>Roy</BLOCKQUOTE></BODY></HTML>