GeoServer WFS and ArcGIS Javascript API

I am trying to add a layer to an ESRI ArcGIS Javascript API map using a WFS based on geoserver. The back end is pulling from POSTGIS, if it makes a difference. The WFS appears to work fine in openlayers, but not in the esri javascript api. Looking at the http requests, they are totally different. Specifically the GetFeatures Request. In openlayers this is the request:

[URL]:8080/geoserver/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=conryservices:zip_polygons&outputFormat=text/javascript&format_options=callback:loadFeatures&srsname=EPSG:3857&bbox=-8913168.994277833,5390950.7308969125,-8903385.05465733,5400734.670517415,EPSG:3857&_=1469810854811

With a nice json response. ESRI requires me to use their proxy, but even still , the request is a POST and looks like this:

[URL]/sproxy/proxy.php?[URL]:8080/geoserver/wfs

<?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:conryservices='[URL]'  version='1.1.0' service='WFS' maxFeatures='100'>  <wfs:Query typeName='conryservices:zip_polygons' srsName='EPSG:4326'>   <ogc:Filter xmlns:ogc='http://www.opengis.net/ogc'>    <ogc:BBOX>     <ogc:PropertyName>conryservices:geom</ogc:PropertyName>     <gml:Box srsName='EPSG:4326'>       <gml:coordinates>-122.94620660400169,42.29605553470161 -122.72579339599417,42.395904817819165</gml:coordinates>     </gml:Box>    </ogc:BBOX>   </ogc:Filter>  </wfs:Query> </GetFeature> 

I'm not sure what I'm missing here, but are these running on the same standard?

Replay

Category: geoserver Time: 2016-07-29 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.283 (s). 12 q(s)