[TinyOWS-users] Error if GetFeature begins with <?xml version="1.0" encoding="UTF-8"?>

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Sun Jun 5 10:55:08 EST 2011


Hi,

I have noticed that there are WFS clients which are adding 
<?xml version="1.0" encoding="UTF-8"?>
into the beginning of each GetFeature POST message, and that leads to a TinyOWS error.
The whole failing raw message is as follows.


User-Agent: Jakarta Commons-HttpClient/3.0-beta1
Host: 188.64.1.61
Content-Type: text/xml
Connection: Keep-Alive
Content-Length: 346


<?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0" maxFeatures="1000" outputFormat="GML2"><wfs:Query xmlns:tows="http://www.tinyows.org/" typeName="tows:france"></wfs:Query></wfs:GetFeature>

The request is accepted if I wipe out the <?xml version="1.0" encoding="UTF-8"?> part from the beginning of the message. Is is forbidden to have that xml information in the beginning of the file, or is it TinyOWS which behaves in a wrong way?

The same historical client has another trouble as well, it does not add "Content-Type: text/xml" into the headers and that will lead to an error as well. The same question here, is Content-Type in the headerst compulsory or is TinyOWS too strict?

Regards, 

-Jukka Rahkonen-



More information about the TinyOWS-users mailing list