Hello,
I am trying to use the response header to determine if a WFS response is valid but there seems to be no obvious indicator in the response header that there was a problem.
Example
(I am using a Firefox plugin to look at the header info for this example.)
Good layer request
<...>/geoserver/wfs?version=1.0.0&TypeName=GOOD_layer&Request=GetFeature&Service=WFS&OUTPUTFORMAT=GML2-GZIP&BBOX=-180.0,-90.0,180.0,90.0
response header:
HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Content-Encoding: gzip
Content-Type: text/xml
Content-Length: 688
Date: Wed, 02 Jul 2008 15:44:18 GMT
Bad Layer
<....>/geoserver/wfs?version=1.0.0&TypeName=BAD_layer&Request=GetFeature&Service=WFS&OUTPUTFORMAT=GML2-GZIP&BBOX=-180.0,-90.0,180.0,90.0
response header:
HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Content-Encoding: gzip
Content-Type: text/xml;charset=UTF-8
Content-Length: 1119
Date: Wed, 02 Jul 2008 15:45:04 GMT
It there some way to get an error flag in the repsonse header. It there an alternate method to do this?
-Jay
On Wed, Jul 2, 2008 at 11:58 AM, Jay Parsons <jay_austin_tx@anonymised.com> wrote:
Hello,
I am trying to use the response header to determine if a WFS response is valid but there seems to be no obvious indicator in the response header that there was a problem.
Example
(I am using a Firefox plugin to look at the header info for this example.)
Good layer request
<...>/geoserver/wfs?version=1.0.0&TypeName=GOOD_layer&Request=GetFeature&Service=WFS&OUTPUTFORMAT=GML2-GZIP&BBOX=-180.0,-90.0,180.0,90.0
response header:
HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Content-Encoding: gzip
Content-Type: text/xml
Content-Length: 688
Date: Wed, 02 Jul 2008 15:44:18 GMT
Bad Layer
<....>/geoserver/wfs?version=1.0.0&TypeName=BAD_layer&Request=GetFeature&Service=WFS&OUTPUTFORMAT=GML2-GZIP&BBOX=-180.0,-90.0,180.0,90.0
response header:
HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Content-Encoding: gzip
Content-Type: text/xml;charset=UTF-8
Content-Length: 1119
Date: Wed, 02 Jul 2008 15:45:04 GMT
It there some way to get an error flag in the repsonse header. It there an alternate method to do this?
No there is no way to do this. To determine if you have an error you
need to look at the root element of the document.
If you want REST you'll need to go see Sean Gilles at
http://zcologia.com/news/ no body else is bothering with it 
Ian