<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Hi All,<br><br><br>I am trying to build geospatial application using OpenLayers and<br>Geoserver 2.1-RC3. Implementing WFS part I&#39;ve faced with the following<br>
problem:<br><br>OpenLayers builds such request:<br><br>&lt;wfs:GetFeature<br> service=&quot;WFS&quot;<br> version=&quot;1.1.0&quot;<br> xsi:schemaLocation=&quot;<a href="http://www.opengis.net/wfs" target="_blank" style="color: rgb(0, 0, 204); ">http://www.opengis.net/wfs</a><br>
<a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank" style="color: rgb(0, 0, 204); ">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>&quot;&gt;<br> &lt;wfs:Query typeName=&quot;foo:Bar&quot; srsName=&quot;EPSG:96995&quot;&gt;<br>
   &lt;ogc:Filter&gt;<br>     &lt;ogc:BBOX&gt;<br>       &lt;ogc:PropertyName&gt;GEOM&lt;/ogc:PropertyName&gt;<br>       &lt;gml:Envelope srsName=&quot;EPSG:96995&quot;&gt;<br>         &lt;gml:lowerCorner&gt;-49003.957598278 -32778.430510464&lt;/gml:lowerCorner&gt;<br>
         &lt;gml:upperCorner&gt;49003.957598278 25546.430510464&lt;/gml:upperCorner&gt;<br>       &lt;/gml:Envelope&gt;<br>     &lt;/ogc:BBOX&gt;<br>   &lt;/ogc:Filter&gt;<br> &lt;/wfs:Query&gt;<br>&lt;/wfs:GetFeature&gt;<br>
<br>In response on this request my Geoserver response with such exception:<br><br>&lt;ows:ExceptionReport version=&quot;1.0.0&quot;<br>xsi:schemaLocation=&quot;<a href="http://www.opengis.net/ows" target="_blank" style="color: rgb(0, 0, 204); ">http://www.opengis.net/ows</a><br>
<a href="http://services.local/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd" target="_blank" style="color: rgb(0, 0, 204); ">http://services.local:80/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd</a>&quot;&gt;<br>
 &lt;ows:Exception exceptionCode=&quot;NoApplicableCode&quot;&gt;<br>   &lt;ows:ExceptionText&gt;<br>     org.xmlpull.v1.XmlPullParserException: could not determine<br>namespace bound to element prefix wfs (position: START_DOCUMENT seen<br>
...<a href="http://www.opengis.net/wfs" target="_blank" style="color: rgb(0, 0, 204); ">www.opengis.net/wfs</a><br><a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&amp;quot;&amp;gt;." target="_blank" style="color: rgb(0, 0, 204); ">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&amp;quot;&amp;gt;.</a>.. @1:139)<br>
     could not determine namespace bound to element prefix wfs<br>(position: START_DOCUMENT seen ...<a href="http://www.opengis.net/wfs" target="_blank" style="color: rgb(0, 0, 204); ">www.opengis.net/wfs</a><br><a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&amp;quot;&amp;gt;." target="_blank" style="color: rgb(0, 0, 204); ">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&amp;quot;&amp;gt;.</a>.. @1:139)<br>
   &lt;/ows:ExceptionText&gt;<br> &lt;/ows:Exception&gt;<br>&lt;/ows:ExceptionReport&gt;<br><br>I have reproduced this request manually. If I add the following<br>attributes to the wfs:GetFeature element<br><br> xmlns:wfs=&quot;<a href="http://www.opengis.net/wfs" target="_blank" style="color: rgb(0, 0, 204); ">http://www.opengis.net/wfs</a>&quot;<br>
 xmlns:ogc=&quot;<a href="http://www.opengis.net/ogc" target="_blank" style="color: rgb(0, 0, 204); ">http://www.opengis.net/ogc</a>&quot;<br> xmlns:gml=&quot;<a href="http://www.opengis.net/gml" target="_blank" style="color: rgb(0, 0, 204); ">http://www.opengis.net/gml</a>&quot;<br>
 xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" style="color: rgb(0, 0, 204); ">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br><br>Server produces correct answer (spatial data). I get these attributes<br>
from Geoserver demo request.<br><br>Looks like server performs some kind of XML validation and decides<br>that request is not well formed.<br><br>I&#39;ve tried to disable &quot;Strict CITE compliance&quot;. Tried to test with<br>
both options for &quot;Encode canonical WFS schema location&quot; but no<br>positive result.<br><br>I&#39;ve compared this OpenLayers request with requests prepared by<br>OpenLayer on the few public websites - the same situation. There is no<br>
bindings for<br>wfs, ogc, gml, xsi prefixes.<br><br>So, I assume there should be approach to disable this validation or to<br>get Geoserver parser to know about such common prefixes.<br><br>Maybe I have missed something. Help me please.<br>
<br><br>Thanks,<br><br>Sunny</span>