From: Andrea A. <and...@ge...> - 2011-10-20 06:07:24
|
On Thu, Oct 20, 2011 at 7:52 AM, Gerson Galang <ger...@gm...> wrote: > Hi, > I've been using the WFS plugin > (http://docs.geotools.org/latest/userguide/library/data/wfs.html) to run > getCapabilities, describeFeatureType and getFeature request against our > local geoserver. It was all working fine until I started talking to a WFS > that requires authentication. I added the WFSDataStoreFactory:USERNAME and > WFSDataStoreFactory:PASSWORD to the list of connectionParameters but the > query only worked for getCapabilities and describeFeatureType requests. Do I > need to do anything special if I am to run a getFeature request requiring > authentication? Sounds very much like this issue: http://jira.codehaus.org/browse/GEOS-3967 It has been fixed only a couple of weeks ago, you might want to checkout out the current sources of GeoTools 2.7.x, or depend on 2.7-SNAPSHOT for the time being. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- |