<div>Hi All,</div><div><br></div><div>I've faced with this problem: The WFS POST request that OpenLayers</div><div>performs does not contains following namespaces:</div><div>xmlns:wfs="hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>"</div>
<div>xmlns:ogc="hxxp://<a href="http://www.opengis.net/ogc">www.opengis.net/ogc</a>"</div><div>xmlns:gml="hxxp://<a href="http://www.opengis.net/gml">www.opengis.net/gml</a>"</div><div>xmlns:xsi="hxxp://<a href="http://www.w3.org/2001/XMLSchema-instance">www.w3.org/2001/XMLSchema-instance</a>"</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><div id="getfeature0"><!--</div>
<div><wfs:GetFeature service="WFS" version="1.1.0" resultType="hits"</div><div>xmlns:topp="hxxp://<a href="http://www.openplans.org/topp">www.openplans.org/topp</a>"</div><div> xmlns:wfs="hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>"</div>
<div> xmlns:ogc="hxxp://<a href="http://www.opengis.net/ogc">www.opengis.net/ogc</a>"</div><div> xmlns:xsi="hxxp://<a href="http://www.w3.org/2001/XMLSchema-instance">www.w3.org/2001/XMLSchema-instance</a>"</div>
<div> xsi:schemaLocation="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>"></div>
<div> <wfs:Query xmlns:wfs="hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>"</div><div>typeName="topp:states" xmlns:topp="hxxp://<a href="http://www.openplans.org/topp">www.openplans.org/topp</a>"></div>
<div> <wfs:PropertyName>STATE_NAME</wfs:PropertyName></div><div> <wfs:PropertyName>STATE_FIPS</wfs:PropertyName></div><div> <wfs:PropertyName>STATE_ABBR</wfs:PropertyName></div>
<div> </wfs:Query></div><div></wfs:GetFeature></div><div>--></div></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><wfs:GetFeature service="WFS" version="1.1.0" resultType="hits"</div><div>xmlns:topp="hxxp://<a href="http://www.openplans.org/topp">www.openplans.org/topp</a>"</div>
<div> xmlns:wfs="hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>"</div><div> xmlns:ogc="hxxp://<a href="http://www.opengis.net/ogc">www.opengis.net/ogc</a>"</div>
<div> xmlns:xsi="hxxp://<a href="http://www.w3.org/2001/XMLSchema-instance">www.w3.org/2001/XMLSchema-instance</a>"</div><div> xsi:schemaLocation="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>"></div><div> <wfs:Query xmlns:wfs="hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>"</div>
<div>typeName="topp:states" xmlns:topp="hxxp://<a href="http://www.openplans.org/topp">www.openplans.org/topp</a>"></div><div> <wfs:PropertyName>STATE_NAME</wfs:PropertyName></div>
<div> <wfs:PropertyName>STATE_FIPS</wfs:PropertyName></div><div> <wfs:PropertyName>STATE_ABBR</wfs:PropertyName></div><div> </wfs:Query></div><div></wfs:GetFeature></div><div>
<br></div><div>And real value (got) is:</div><div><br></div><div><wfs:GetFeature service="WFS" version="1.1.0" resultType="hits"</div><div>xsi:schemaLocation="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>"></div><div> <wfs:Query xmlns:wfs="hxxp://<a href="http://www.opengis.net/wfs">www.opengis.net/wfs</a>"</div>
<div>typeName="topp:states" xmlns:topp="hxxp://<a href="http://www.openplans.org/topp">www.openplans.org/topp</a>"></div><div> <wfs:PropertyName>STATE_NAME</wfs:PropertyName></div>
<div> <wfs:PropertyName>STATE_FIPS</wfs:PropertyName></div><div> <wfs:PropertyName>STATE_ABBR</wfs:PropertyName></div><div> </wfs:Query></div><div></wfs:GetFeature></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><ows:ExceptionReport version="1.0.0"</div><div>xsi:schemaLocation="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"></div>
<div> <ows:Exception exceptionCode="NoApplicableCode"></div><div> <ows:ExceptionText></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&quot;&gt;.">schemas.opengis.net/wfs/1.1.0/wfs.xsd&quot;&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&quot;&gt;.">schemas.opengis.net/wfs/1.1.0/wfs.xsd&quot;&gt;.</a>.. @1:139)</div>
<div> </ows:ExceptionText></div><div> </ows:Exception></div><div></ows:ExceptionReport></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've search all</div><div>the internet with no luck. Maybe I've missed something?</div><div><br></div><div>Thanks,</div><div>Sunny</div>