Hi,
I'm a user of a service provider that uses MapServer V5.4.2. I'm using their WFS Service. I'm trying to restrict the set of attributes that are returned by using a POST'ed Query in my request. But it doesn't seem to work. The service provider is using V5.4.2. I've tried equivalent queries on my own server (a V5.6.0) which works fine. Would this a problem/limitation of the service providers server?(eg. version problem or config setting) Or am I missing stuff in the namespaces/schema declarations? Or is it perhaps the query I'm using?
My POST query looks like this:
<pre><wfs:GetFeature
xmlns:wfs="http://www.opengis.net/wfs"
service="WFS"
version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query typeName="ms:IDY03103_dryblb" xmlns:ms="http://mapserver.gis.umn.edu/mapserver">
<ogc:PropertyName xmlns:ogc="http://www.opengis.net/ogc">msGeometry</ogc:PropertyName>
<ogc:PropertyName xmlns:ogc="http://www.opengis.net/ogc">datetime</ogc:PropertyName>
<ogc:PropertyName xmlns:ogc="http://www.opengis.net/ogc">id_num</ogc:PropertyName>
<ogc:PropertyName xmlns:ogc="http://www.opengis.net/ogc">id_name</ogc:PropertyName>
</wfs:Query>
</wfs:GetFeature>
</pre>
NB. am setting the content type to "text/xml",
Also tried a GET request with the filter:
<pre>wget -O dbtemp.gml "http://someserviceprovider.com/cgi-bin/mapserv?SERVICE=WFS&
VERSION=1.1.0&REQUEST=GetFeature&TypeName=IDY03103_dryblb&FILTER=(<filter><within>
<PropertyName>msGeometry</PropertyName><gml:Envelope srsName="EPSG:4283">
<gml:lowerCorner>138 -29</gml:lowerCorner><gml:upperCorner>155 -43</gml:upperCorner>
</gml:Envelope></within></filter>)"
</pre>
Response extract:
<pre><ows:Exception exceptionCode="filter" locator="InvalidParameterValue">
<ows:ExceptionText>msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in
GetFeature : (<filter><within><PropertyName.............to the end of the filter string!
</pre>
Thanks in advance!
Regards, Bill Teluk
<div class="signature">Regards, Bill Teluk</div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/WFS-restricting-returned-attributes-tp6719063p6719063.html">WFS restricting returned attributes</a><br/>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/Mapserver-User-f1969211.html">Mapserver - User mailing list archive</a> at Nabble.com.<br/>