epimpler

GeometryService Error

Discussion created by epimpler on Sep 30, 2010
Latest reply on Sep 30, 2010 by DSwingley-esristaff
I'm getting a 403 Forbidden error when attempting to access a GeometryService.  Code is pretty straight forward but maybe I'm doing something wrong or perhaps this is permission related.

gsvc = new esri.tasks.GeometryService("http://<my server>/ArcGIS/services/Geometry/GeometryServer");
   
var params = new esri.tasks.BufferParameters();
params.bufferSpatialReference = new esri.SpatialReference({wkid: 3395});
params.outSpatialReference = new esri.SpatialReference({wkid: 3395});
params.geometries = geometries;
params.distances = [25];
params.unit = esri.tasks.GeometryService.UNIT_METER;
params.unionResults = true;
   
gsvc.buffer(params, showBuffer);

Outcomes