Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I've faced with this problem: The WFS POST request that OpenLayers performs does not contains following namespaces: xmlns:wfs="hxxp://www.opengis.net/wfs" xmlns:ogc="hxxp://www.opengis.net/ogc" xmlns:gml="hxxp://www.opengis.net/gml" xmlns:xsi="hxxp://www.w3.org/2001/XMLSchema-instance"

The weird thing is that these namespaces are mentioned in test expected value at OpenLayers\tests\Format\WFST\v1_1_0.html

...

STATE_NAME STATE_FIPS STATE_ABBR -->

...

I have analysed this test with FireBug and get following:

expected value (exp) is:

STATE_NAME STATE_FIPS STATE_ABBR

And real value (got) is:

STATE_NAME STATE_FIPS STATE_ABBR

As you can see there is no topp, wfs, ogc, xsi namespaces but test is resulted as PASSED.

The fact that mentioned namespaces are missed caused following problem with the Geoserver:

org.xmlpull.v1.XmlPullParserException: could not determine namespace bound to element prefix wfs (position: START_DOCUMENT seen ...www.opengis.net/wfs hxxp://schemas.opengis.net/wfs/1.1.0/wfs.xsd">... @1:139) could not determine namespace bound to element prefix wfs (position: START_DOCUMENT seen ...www.opengis.net/wfs hxxp://schemas.opengis.net/wfs/1.1.0/wfs.xsd">... @1:139)

I heve reported this issue on the Geoserver users mail list but no response yet.

Please if anybody have any idea on this issue help me. I've search all the internet with no luck. Maybe I've missed something?

Thanks, Sunny

share|improve this question
    
Please, use code blocks and quotes to format your message –  simo Apr 4 '11 at 14:43
add comment

2 Answers 2

Look at http://ian01.geog.psu.edu/geoserver/www/wfs/index.html to see how I've been using WFS layers in OpenLayers - there seems to be no problem in these requests. Without seeing the actual code you are using it's hard to say what is up.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.