I am trying to display a WFS layer in a web app built with Web AppBuilder Developer Edition, this layer is hosted on a GeoServer and uses a PostGIS data store. When I perform the POST request to get the features using a tool like POST Man on my server URL http://127.0.0.1:32771/adsb-docker/wfs everything is fine. When the request is made by the web app the URL become proxied to https://laptop-lc:3344/proxy.js?http://127.0.0.1:32771/adsb-docker/wfs and the GeoServer return an error like this one : How to correctly request a geoserver WFS via POST? - Stack Overflow. I suspect that some headers are not properly forwarded to it but any support on this is welcomed.
The request body is the following:
<?xml version='1.0' encoding='utf-8'?><GetFeature xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:gml='http://www.opengis.net/gml' xmlns:ogc='http://www.opengis.net/ogc' xmlns:wfs='http://www.opengis.net/wfs' xmlns='http://www.opengis.net/wfs' xmlns:adsb-docker='http://www.airbus.com/adsb-docker' version='1.1.0' service='WFS' maxFeatures='100'> <wfs:Query typeName='adsb-docker:aircrafts' srsName='EPSG:4326'> </wfs:Query></GetFeature>
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.