nschmidt

Accessing the Body of a Request in an SOE

Discussion created by nschmidt on Oct 1, 2012
Latest reply on Oct 3, 2012 by nschmidt
I have run into a limitation on URL size (2000 characters) when POSTing to a custom SOE I developed, so I find I need to move some (or all) of my request parameters into the body of a request.  Based on the documentation here: http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/extension.html  I got the impression that the ArcGIS Server SOE framework would just automagically figure out that my parameters were in the body instead of in the URL.  But apparently this is not the case.  (BTW - I actually am using 10.1, not 10.0 but could not find that relevant page for 10.1 and figured it had not changed that much).

This is my schema definition:
 RestOperation updateOper = new RestOperation("UpdateGIS",
  new string[] { "updatepayload" },
  new string[] { "json" },
  UpdateGISOperHandler);


and this is the signature of my method
        private byte[] UpdateGISOperHandler(NameValueCollection boundVariables,
                  JsonObject operationInput,
                  string outputFormat,
                  string requestProperties, 
                  out string responseProperties)


When this is called I was expecting that the parameter (which I moved to the body) to be in operationInput but it is not.

Can anyone point out what I might be missing here?

Outcomes