<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19088">
</head>
<body>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="484442707-24082011">Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="484442707-24082011"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="484442707-24082011">You can try if service takes list of propertynames&nbsp;with GET like
</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="484442707-24082011"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff"><span class="484442707-24082011"><a title="" href="http://188.64.1.61/cgi-bin/tinyows?service=wfs&amp;version=1.0.0&amp;request=GetFeature&amp;typename=lv:mml_railway&amp;BBOX=246700,6780800,436400,6924000&amp;propertyname=sahko,the_geom&amp;maxfeatures=1">http://188.64.1.61/cgi-bin/tinyows?service=wfs&amp;version=1.0.0&amp;request=GetFeature&amp;typename=lv:mml_railway&amp;BBOX=246700,6780800,436400,6924000&amp;propertyname=sahko,the_geom&amp;maxfeatures=1</a><font color="#000000">&nbsp;</font></span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="484442707-24082011"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="484442707-24082011">When it comes to filters, I am not sure how strict Mapserver is but I would first have a try by correcting the errors (Filter instead of filter, Within
 and not within) </span></font><font color="#0000ff" size="2" face="Arial"><span class="484442707-24082011">and&nbsp;using it as URL-encoded in the URL.&nbsp; TinyOWS accepts GET filters when used like this.</span></font></div>
<font color="#0000ff" size="2" face="Arial"><span class="484442707-24082011"></span></font><font size="2" face="Arial"><span class="484442707-24082011">
<div dir="ltr" align="left"><br>
<a href="http://188.64.1.61/cgi-bin/tinyows?service=wfs&amp;version=1.1.0&amp;request=getfeature&amp;typename=tows:osm_point&amp;maxfeatures=10&amp;filter=%3CFilter%20%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etows:amenity%3C/PropertyName%3E%3CLiteral%3Ewaste_basket%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E"><font size="3" face="Times New Roman">http://188.64.1.61/cgi-bin/tinyows?service=wfs&amp;version=1.1.0&amp;request=getfeature&amp;typename=tows:osm_point&amp;maxfeatures=10&amp;filter=%3CFilter%20%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etows:amenity%3C/PropertyName%3E%3CLiteral%3Ewaste_basket%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E</font></a></div>
<div dir="ltr" align="left"><font color="#0000ff"></font>&nbsp;</div>
<div dir="ltr" align="left"><span class="484442707-24082011"></span><font color="#0000ff">-<span class="484442707-24082011">Jukka Rahkonen-</span><br>
</font></div>
</span></font>
<blockquote style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<div dir="ltr" lang="fi" class="OutlookMessageHeader" align="left"><font face="Tahoma"><font size="2"><b>&nbsp;</b>bteluk<span class="484442707-24082011"><font color="#0000ff" face="Arial">&nbsp; wrote:</font></span></font></font><br>
</div>
<div></div>
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 &quot;text/xml&quot;, 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>
</blockquote>
</body>
</html>