I am trying to get some data filtered by date in GML format by using WFS GetFeature in geoserver, but the operation ignores the time parameter and just returns a huge GML file with all the data. This is the query I am using:
http://localhost:8082/geoserver/it.geosolutions/ows?service=WFS&version=1.2.0&request=GetFeature&typeName=it.geosolutions:tsige&time=2011-07-25T00:00:00.0Z/2011-07-25T23:59:59.999Z
According to this, the time parameter should be supported in WFS GetFeature operation, so I do not know what is wrong. Also, what are the alternatives I have for getting the data filtered by time in XML or JSON format, or some other easy-to-parse format?
Not all vendor implementations support all parameters, one of the joys of working with OGC services. Also note that GeoServer implements WFS 1.0.0, 1.1.0 and 2.0.0 (not 1.2.0 in your sample above)
You can do what you want with a (relatively verbose) POST request using an OGC filter, this might work with a GET but I'll leave that as an exercise for the reader...
You could test this using curl with the request saved as
wfs.xml