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>&lt;wfs:GetFeature 
xmlns:wfs=&quot;http://www.opengis.net/wfs&quot; 
service=&quot;WFS&quot; 
version=&quot;1.0.0&quot; 
xsi:schemaLocation=&quot;http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd&quot; 
xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
&lt;wfs:Query typeName=&quot;ms:IDY03103_dryblb&quot; xmlns:ms=&quot;http://mapserver.gis.umn.edu/mapserver&quot;&gt;
&lt;ogc:PropertyName xmlns:ogc=&quot;http://www.opengis.net/ogc&quot;&gt;msGeometry&lt;/ogc:PropertyName&gt;
&lt;ogc:PropertyName xmlns:ogc=&quot;http://www.opengis.net/ogc&quot;&gt;datetime&lt;/ogc:PropertyName&gt;
&lt;ogc:PropertyName xmlns:ogc=&quot;http://www.opengis.net/ogc&quot;&gt;id_num&lt;/ogc:PropertyName&gt;
&lt;ogc:PropertyName xmlns:ogc=&quot;http://www.opengis.net/ogc&quot;&gt;id_name&lt;/ogc:PropertyName&gt;
&lt;/wfs:Query&gt;
&lt;/wfs:GetFeature&gt;
</pre>
NB. am setting the content type to "text/xml", 

Also tried a GET request with the filter:

<pre>wget -O dbtemp.gml &quot;http://someserviceprovider.com/cgi-bin/mapserv?SERVICE=WFS&amp;
VERSION=1.1.0&amp;REQUEST=GetFeature&amp;TypeName=IDY03103_dryblb&amp;FILTER=(&lt;filter&gt;&lt;within&gt;
&lt;PropertyName&gt;msGeometry&lt;/PropertyName&gt;&lt;gml:Envelope srsName=&quot;EPSG:4283&quot;&gt;
&lt;gml:lowerCorner&gt;138 -29&lt;/gml:lowerCorner&gt;&lt;gml:upperCorner&gt;155 -43&lt;/gml:upperCorner&gt;
&lt;/gml:Envelope&gt;&lt;/within&gt;&lt;/filter&gt;)&quot;
</pre>

Response extract:
<pre>&lt;ows:Exception exceptionCode=&quot;filter&quot; locator=&quot;InvalidParameterValue&quot;&gt;
    &lt;ows:ExceptionText&gt;msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in 
GetFeature : (&amp;lt;filter&amp;gt;&amp;lt;within&amp;gt;&amp;lt;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/>