On Mon, Oct 24, 2011 at 11:05 AM, andreas <[email protected]> wrote: > 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.
hmm I _think_ wfs 1.0 and 1.1 featurecollection responses are tied to the http://www.opengis.net/wfs namespace. In any case, it makes sense that you customize to handle your particular WFS. What would be great is if it could be done by means of an extra "WFSStrategy". What kind of server is that you're hitting? (Is it from a vendor for which a WFSStrategy already exists? ArcGIS/CubeWerx/Ionic) If not, is it something internal of yours or one that would make sense for geotools to support? and if so, do you think it would be possible to get a handle on _any_ instance of it? Cheers, Gabriel > > 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 > -- Gabriel Roldan OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ 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
