Hi Mauro,
Clearly my mistake! I guess some discrepancy between the actual viewparams and the bbox I used, because this request works like a charm:
<wfs:GetFeature service=“WFS” version=“1.1.0”
xmlns:topp=“http://www.openplans.org/topp”
xmlns:wfs=“http://www.opengis.net/wfs”
xmlns:ogc=“http://www.opengis.net/ogc”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
wfs:viewParams=“param:value”
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
<wfs:Query typeName=“workspace:layer”>
</wfs:Query>
</wfs:GetFeature>
Now let’s see if OpenLayers is able to add the viewparams to the GetFeature post-request. Fingers crossed!
Kind regards,
Roel
Van: maurobartolomeoli@…84… [mailto:maurobartolomeoli@…84…] Namens Mauro Bartolomeoli
Verzonden: dinsdag 15 april 2014 14:41
Aan: Roel De Nijs
CC: geoserver-users@lists.sourceforge.net
Onderwerp: Re: [Geoserver-users] WFS post & viewparams
Hi Roel, according to the documentation it should: http://docs.geoserver.org/stable/en/user/data/database/sqlview.html
Can you share the requests you tried?
Thanks
Mauro Bartolomeoli
2014-04-15 14:17 GMT+02:00 Roel De Nijs <roel.denijs@…5173…>:
Hi all,
Is geoserver able to handle viewparams in a WFS post-request? If it is, how should the WFS-request be built? Because I tried a few different requests, but unfortunately without success.
Kind regards,
Roel
Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN
Disclaimer: zie www.aquafin.be P Denk aan het milieu. Druk deze mail niet onnodig af.
Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==
Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it