Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Server Object Extension for ArcGIS Server 10.0, that implements IRESTRequestHandler. The extension contains many individual RestOperations. By default each RestOperation supports HTTP GETs when using the extension. In the RestOperation constructor, there is a parameter called postOnly, which is a boolean. If I set postOnly = true, then the endpoint will only support HTTP POSTs, and will throw an exception if you attempt to use a GET. I would like to create an endpoint that supports both GET and POST. If you interrogate some of the supported methods on a standard MapService like Find and Identify, you will notice these support both GET and POST:

Does anyone know of a way to implement this on a custom Server Object Extension?

share|improve this question
Have you tried creating your mapservice with feature access enabled?… – Brad Nesom Sep 28 '11 at 15:04
up vote 3 down vote accepted

I just tested a GET and POST request with my custom SOE, and it accepts both GET and POST requests just fine without any special configuration. postOnly=true as you know will force POST only requests, and should be used when data is modified. What kind of a response do you get when you try and submit a POST request to your SOE?

share|improve this answer
How obvious! I was hung up on why the REST endpoint page did not have a separate button for GET and POST. I just tested it on my SOE and it works fine with GET and POST. Thanks! – SagebrushGIS Sep 28 '11 at 15:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.