Sure, here you are:

1.0.0 (working) request:

WFS post request: <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"; 
service="WFS" version="1.0.0" maxFeatures="100" 
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:katastar_vodnjan_poligon" 
xmlns:ms="http://gis.kermas-istra.com";><ogc:Filter 
xmlns:ogc="http://www.opengis.net/ogc";><ogc:PropertyIsLike wildCard="*" 
singleChar="." 
escape="!"><ogc:PropertyName>NUMBER</ogc:PropertyName><ogc:Literal>19/1</ogc:Literal></ogc:PropertyIsLike></ogc:Filter></wfs:Query></wfs:GetFeature>

1.1.0 (non-working) request:

WFS post request: <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"; 
service="WFS" version="1.1.0" maxFeatures="100" 
xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><wfs:Query 
typeName="ms:katastar_vodnjan_poligon" srsName="EPSG:900913" 
xmlns:ms="http://gis.kermas-istra.com";><ogc:Filter 
xmlns:ogc="http://www.opengis.net/ogc";><ogc:PropertyIsLike wildCard="*" 
singleChar="." 
escapeChar="!"><ogc:PropertyName>NUMBER</ogc:PropertyName><ogc:Literal>19/1</ogc:Literal></ogc:PropertyIsLike></ogc:Filter></wfs:Query></wfs:GetFeature>

thanks, dejan

On 19. vel. 2014., at 08:57, Martin Kofahl wrote:

> Hi Dejan,
> can you please post the get or post request made by openlayers for both, 
> version 1.1.0 and 1.0.0?
> 
> Martin
> 
> 
> 2014-02-18 11:37 GMT+01:00 Dejan Gambin <[email protected]>:
> Hi,
> 
> I have been using MapServer 6.0.3 for a while. My client application worked 
> well with WFS 1.1.0 protocol. Here is the part of the code:
> 
> var protocol = new OpenLayers.Protocol.WFS({
>                     version: "1.0.0",
>                     url:  self.options.config.wfs_url + 
> "SERVICE=WFS&srsName=EPSG:900913",
>                     srsName:"EPSG:900913",
>                     featureNS: self.options.config.wfs_ns,
>                     geometryName: "msGeometry",
>                     featurePrefix: "ms",
>                     featureType: some_layer,
>                     defaultFilter: new OpenLayers.Filter.Comparison({
>                         type: OpenLayers.Filter.Comparison.LIKE,
>                         property: some_property
>                         value: some_value
>                     })
>                 })
> 
> Recently I went to MapServer 6.4.1 and I started to get "no results" when 
> using this code to search by attributes. I changed version 1.1.0 to 1.0.0 and 
> everything works fine now.
> 
> Does anyone know what is the reason for this and should I stay on 1.0.0?
> 
> Notes - when doing spatial query it works ok even with 1.1.0.
> 
> Thanks!
> 
> dejan
> 
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to