<div>Hi All,</div><div><br></div><div>I&#39;ve faced with this problem: The WFS POST request that OpenLayers</div><div>performs does not contains following namespaces:</div><div>xmlns:wfs=&quot;hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>&quot;</div>
<div>xmlns:ogc=&quot;hxxp://<a href="http://www.opengis.net/ogc">www.opengis.net/ogc</a>&quot;</div><div>xmlns:gml=&quot;hxxp://<a href="http://www.opengis.net/gml">www.opengis.net/gml</a>&quot;</div><div>xmlns:xsi=&quot;hxxp://<a href="http://www.w3.org/2001/XMLSchema-instance">www.w3.org/2001/XMLSchema-instance</a>&quot;</div>
<div><br></div><div>The weird thing is that these namespaces are mentioned in test</div><div>expected value at OpenLayers\tests\Format\WFST\v1_1_0.html</div><div><br></div><div>...</div><div>&lt;div id=&quot;getfeature0&quot;&gt;&lt;!--</div>
<div>&lt;wfs:GetFeature service=&quot;WFS&quot; version=&quot;1.1.0&quot; resultType=&quot;hits&quot;</div><div>xmlns:topp=&quot;hxxp://<a href="http://www.openplans.org/topp">www.openplans.org/topp</a>&quot;</div><div>               xmlns:wfs=&quot;hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>&quot;</div>
<div>               xmlns:ogc=&quot;hxxp://<a href="http://www.opengis.net/ogc">www.opengis.net/ogc</a>&quot;</div><div>               xmlns:xsi=&quot;hxxp://<a href="http://www.w3.org/2001/XMLSchema-instance">www.w3.org/2001/XMLSchema-instance</a>&quot;</div>
<div>               xsi:schemaLocation=&quot;hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a></div><div>hxxp://<a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>&quot;&gt;</div>
<div>   &lt;wfs:Query xmlns:wfs=&quot;hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>&quot;</div><div>typeName=&quot;topp:states&quot; xmlns:topp=&quot;hxxp://<a href="http://www.openplans.org/topp">www.openplans.org/topp</a>&quot;&gt;</div>
<div>       &lt;wfs:PropertyName&gt;STATE_NAME&lt;/wfs:PropertyName&gt;</div><div>       &lt;wfs:PropertyName&gt;STATE_FIPS&lt;/wfs:PropertyName&gt;</div><div>       &lt;wfs:PropertyName&gt;STATE_ABBR&lt;/wfs:PropertyName&gt;</div>
<div>   &lt;/wfs:Query&gt;</div><div>&lt;/wfs:GetFeature&gt;</div><div>--&gt;&lt;/div&gt;</div><div>...</div><div><br></div><div>I have analysed this test with FireBug and get following:</div><div><br></div><div>expected value (exp) is:</div>
<div><br></div><div>&lt;wfs:GetFeature service=&quot;WFS&quot; version=&quot;1.1.0&quot; resultType=&quot;hits&quot;</div><div>xmlns:topp=&quot;hxxp://<a href="http://www.openplans.org/topp">www.openplans.org/topp</a>&quot;</div>
<div>               xmlns:wfs=&quot;hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>&quot;</div><div>               xmlns:ogc=&quot;hxxp://<a href="http://www.opengis.net/ogc">www.opengis.net/ogc</a>&quot;</div>
<div>               xmlns:xsi=&quot;hxxp://<a href="http://www.w3.org/2001/XMLSchema-instance">www.w3.org/2001/XMLSchema-instance</a>&quot;</div><div>               xsi:schemaLocation=&quot;hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a></div>
<div>hxxp://<a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>&quot;&gt;</div><div>   &lt;wfs:Query xmlns:wfs=&quot;hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>&quot;</div>
<div>typeName=&quot;topp:states&quot; xmlns:topp=&quot;hxxp://<a href="http://www.openplans.org/topp">www.openplans.org/topp</a>&quot;&gt;</div><div>       &lt;wfs:PropertyName&gt;STATE_NAME&lt;/wfs:PropertyName&gt;</div>
<div>       &lt;wfs:PropertyName&gt;STATE_FIPS&lt;/wfs:PropertyName&gt;</div><div>       &lt;wfs:PropertyName&gt;STATE_ABBR&lt;/wfs:PropertyName&gt;</div><div>   &lt;/wfs:Query&gt;</div><div>&lt;/wfs:GetFeature&gt;</div><div>
<br></div><div>And real value (got) is:</div><div><br></div><div>&lt;wfs:GetFeature service=&quot;WFS&quot; version=&quot;1.1.0&quot; resultType=&quot;hits&quot;</div><div>xsi:schemaLocation=&quot;hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a></div>
<div>hxxp://<a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>&quot;&gt;</div><div>   &lt;wfs:Query xmlns:wfs=&quot;hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>&quot;</div>
<div>typeName=&quot;topp:states&quot; xmlns:topp=&quot;hxxp://<a href="http://www.openplans.org/topp">www.openplans.org/topp</a>&quot;&gt;</div><div>       &lt;wfs:PropertyName&gt;STATE_NAME&lt;/wfs:PropertyName&gt;</div>
<div>       &lt;wfs:PropertyName&gt;STATE_FIPS&lt;/wfs:PropertyName&gt;</div><div>       &lt;wfs:PropertyName&gt;STATE_ABBR&lt;/wfs:PropertyName&gt;</div><div>   &lt;/wfs:Query&gt;</div><div>&lt;/wfs:GetFeature&gt;</div><div>
<br></div><div>As you can see there is no topp, wfs, ogc, xsi namespaces but test is</div><div>resulted as PASSED.</div><div><br></div><div>The fact that mentioned namespaces are missed caused following problem</div><div>
with the Geoserver:</div><div><br></div><div>&lt;ows:ExceptionReport version=&quot;1.0.0&quot;</div><div>xsi:schemaLocation=&quot;hxxp://<a href="http://www.opengis.net/ows">www.opengis.net/ows</a></div><div>hxxp://services.local:80/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd&quot;&gt;</div>
<div> &lt;ows:Exception exceptionCode=&quot;NoApplicableCode&quot;&gt;</div><div>  &lt;ows:ExceptionText&gt;</div><div>    org.xmlpull.v1.XmlPullParserException: could not determine</div><div>namespace bound to element prefix wfs (position: START_DOCUMENT seen</div>
<div>...<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a></div><div>hxxp://<a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&amp;quot;&amp;gt;.">schemas.opengis.net/wfs/1.1.0/wfs.xsd&amp;quot;&amp;gt;.</a>.. @1:139)</div>
<div>    could not determine namespace bound to element prefix wfs</div><div>(position: START_DOCUMENT seen ...<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a></div><div>hxxp://<a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&amp;quot;&amp;gt;.">schemas.opengis.net/wfs/1.1.0/wfs.xsd&amp;quot;&amp;gt;.</a>.. @1:139)</div>
<div>  &lt;/ows:ExceptionText&gt;</div><div> &lt;/ows:Exception&gt;</div><div>&lt;/ows:ExceptionReport&gt;</div><div><br></div><div>I heve reported this issue on the Geoserver users mail list but no response yet.</div><div>
<br></div><div>Please if anybody have any idea on this issue help me. I&#39;ve search all</div><div>the internet with no luck. Maybe I&#39;ve missed something?</div><div><br></div><div>Thanks,</div><div>Sunny</div>