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?


1 Answer 1


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?

  • 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! Commented Sep 28, 2011 at 15:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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