Select to view content in your preferred language

GeometryService Error

922
5
09-30-2010 01:01 PM
Donald_EricPimpler
Emerging Contributor
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);
0 Kudos
5 Replies
derekswingley1
Deactivated User
Same problem if you hit a geometry service hosted by esri on one of the sample servers?
0 Kudos
Donald_EricPimpler
Emerging Contributor
Getting a 500 Protocol Error when I attempt to hit one of the ESRI sample servers.
0 Kudos
Donald_EricPimpler
Emerging Contributor
Set the alwaysUseProxy back to 'false' which I guess was causing the protocol error.  Now it just seems to hang though.
0 Kudos
Donald_EricPimpler
Emerging Contributor
Well....now it's working.  🙂
0 Kudos
derekswingley1
Deactivated User
Strange...I guess post back if this pops up again. Glad it's working though!
0 Kudos