Objects example- search for record owner using ogc:Filter
- Method:
POST
- URL: https://biuro.biall-net.pl/SE/version-git/wfs-data.php/default_db/ with
GET
params:?SERVICE=WFS&VERSION=1.0.0&SRSNAME=EPSG:3003 &REQUEST=GetFeature &TYPENAME=default_objects:AccessOwner
- data of request to be sent in
POST
<GetFeature xmlns="http://www.opengis.net/wfs/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:default_objects="https://biuro.biall-net.pl/wfs/objects" service="WFS" version="2.0.2"> <ogc:Filter> <ogc:Or> <ogc:PropertyIsEqualTo><ogc:PropertyName>ID</ogc:PropertyName><ogc:Literal>11</ogc:Literal></ogc:PropertyIsEqualTo> <ogc:PropertyIsLike wildCard="*" singleChar="%23" escapeChar="!"><ogc:PropertyName>name</ogc:PropertyName><ogc:Literal>*arek*</ogc:Literal></ogc:PropertyIsLike> </ogc:Or> </ogc:Filter> </GetFeature>
- Result:
<wfs:FeatureCollection ... <gml:featureMember> <default_objects:AccessOwner fid="AccessOwner.11"> <default_objects:id>11</default_objects:id> <default_objects:login>user_11</default_objects:login> <default_objects:name>User 11</default_objects:name> </default_objects:AccessOwner> </gml:featureMember> <gml:featureMember> <default_objects:AccessOwner fid="AccessOwner.123"> <default_objects:id>123</default_objects:id> <default_objects:login>user_123</default_objects:login> <default_objects:name>Marek Kowalski</default_objects:name> </default_objects:AccessOwner> </gml:featureMember> ... </wfs:FeatureCollection>
Note: In above example we didnt showed full xmlns namespaces declarations with
URL to be more user readible. The responded xmlns could look like
that:
xmlns:wfs="http://www.opengis.net/wfs" xmlns="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:default_objects="https://biuro.biall-net.pl/wfs/objects"
xsi:schemaLocation="https://biuro.biall-net.pl/wfs/objects https://biuro.biall-net.pl/SE/version-git/wfs-data.php/default_db/?SERVICE=WFS&VERSION=1.0.0&TYPENAME=default_objects:AccessGroup&REQUEST=DescribeFeatureType"
Note: In above example there are shown not exact ammount of elements that
are could be responded by server.