I suggest to use Wireshark to capture GET/POST request and OK reply from
the server. Using filter 'http'
Il giorno 12/apr/2013 09:31, "Andrea Aime" <[email protected]>
ha scritto:

> On Fri, Apr 12, 2013 at 4:37 AM, Jerome A. Wendell <
> [email protected]> wrote:
>
>> Ben,
>>
>> Thank you very much for your reply.  Below is the portion of my code used
>> to make the request:
>>
>> var filter = new OpenLayers.Filter.Comparison({
>>                 type: OpenLayers.Filter.Comparison.EQUAL_TO,
>>                 property: 'myproperty',
>>                 value: ‘myvalue’
>>   });
>> wfsProtocol = new OpenLayers.Protocol.WFS({
>>                 version: "1.1.0",
>>                 url: "http://myserver:8080/geoserver/mystore/wfs";,
>>                 featureType: "mylayer", //name of the geoserver layer
>>                 featureNS: "mystore", //name of the geoserver store
>>                 geometryName: "the_geom",
>>                 srsName: "EPSG:4326",
>>                 scope: strategy
>> });
>> var strategy = new OpenLayers.Strategy.Fixed();
>> var response = wfsProtocol.read({
>>                 filter: filter,
>>                 callback: processWFSQuery
>> });
>> function processWFSQuery(response) {
>> try {
>>                                 var gmlParser = new
>> OpenLayers.Format.GML.v3();
>>                                 var features =
>> gmlParser.read(response.priv.responseXML);
>>                                 vectorLayer.destroyFeatures();
>>                                 if(features.length > 0) {
>>                                                 for(var i = 0; i <
>> features.length; i++) {
>>                                                                 var
>> feature = features[i];
>>
>> feature.geometry.transform(new
>> OpenLayers.Projection('EPSG:4326'),this.map.getProjectionObject());
>>
>> vectorLayer.addFeatures(feature);
>>                                                 }
>>                                 layextent = vectorLayer.getDataExtent();
>>                                 map.zoomToExtent(layextent);
>>                                 }else {
>>                                                 alert("Not found!");
>>                                                 if (popup){
>>
>> popup.destroy();
>>                                                 }
>>                                 }
>>                 } catch(e) {
>>                                 alert("Error: " + e);
>>                 }
>> }
>>
>
> Can you use Firebug/Chrome dev tools to capture the exact POST request
> being made?
> Also, what data store are you using? Shapefiles, Oracle, PostGIS,....
>
> Cheers
> Andrea
>
>
> --
> ==
> GeoServer training in Milan, 6th & 7th June 2013!  Visit
> http://geoserver.geo-solutions.it for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to