Sorry, but i'm not able to give you a link to the server as it's in our
internal LAN.
But i'm a bit further now.
For testing and debugging purposes i have set the request protocol to false
(GET) via the WFSDataStoreFactory:PROTOCOL parameter for that i was able to
simply had a look on the generated URL.
After reversing this to true (POST) the Server responds with the correct
Data.
So i think there is a difference in Namespace handling in request generation
whether you use GET or POST protocol.
By the way the server accepts WFS Versions 1.0.0 and 1.1.0.

Unfortunately now i have the next problem with parsing the response. The
XMLSimpleFeatureParser which is responsible for parsing the response assumes
some predefined Namespace declarations.
The code which gives me problems is 
parser.require(XmlPullParser.START_TAG, WFS.NAMESPACE,
WFS.FeatureCollection.getLocalPart());
where WFS.NAMESPACE is staticly defined as "http://www.opengis.net/wfs";. 
The Server response declares the FeatureResponse in the
"http://www.opengis.net/gml"; namespace.
So i think i have to write a new Parser to get my respones parsed.

As my actual requirement for the wfs is very simple and restricted to an
actual project i decided to write my own request mapper and response parser
for this special case.

Although thanks for your hints,
Andreas


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Namespace-Support-in-WFS-GetFeature-Request-tp6911991p6925164.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to