Hi Phil I have done this. What I do is prepare the ArcGIS REST query URL eg:
var qryurl = "http://myserver/ArcGIS/rest/services/mapservice_cadastre_prod/MapServer/7/query?text=&geometry="+easting+","+northing+"&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelWithin&where=&returnGeometry=false&outSR=&outFields=par_id&f=pjson"; Then submitted this via OpenLayers.Request.Get call: OpenLayers.Request.GET({ url: qryurl, callback: setHTML1 }); These code fragments are inside a : map.events.register('click', map, function (e) { ... } function. Then I have written the setHTML1 callback to parse the returned JSON. Cheers, Robert Sanson ________________________________________ From: openlayers-users-boun...@lists.osgeo.org <openlayers-users-boun...@lists.osgeo.org> on behalf of Phil Scadden <p.scad...@gns.cri.nz> Sent: Tuesday, 28 April 2015 3:42 p.m. To: openlayers-users@lists.osgeo.org; ol3-...@googlegroups.com Subject: [OpenLayers-Users] Openlayers and ArcGIS Server REST query functions. I have an arcGIS server that I want to use that is not publishing WMS or WFS, just REST supporting Identify and Find. I can draw it with the ArcGISREST93 layer tool but I also want to query it. I found patches from 5 years ago with some work on this but no updates. Has anyone played with openlayers and arcGIS REST-only servers? Any code updates? Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users