The SOI Rest request handler method -
public byte[] HandleRESTRequest(string Capabilities, string resourceName, string operationName,
string operationInput, string outputFormat, string requestProperties, out string responseProperties)
HandleRESTRequest paramater provides following information inside the method
capabilities Map,Query,Data
resourceName layers/0,
operationName query,
operationInput {"returnZ":false,"returnIdsOnly":false,
"where":"","returnDistinctValues":false,"returnM":false,"returnCountOnly":false,"returnExtentsOnly":false,
"returnTrueCurves":false,"returnGeometry":true,
"spatialRel":"esriSpatialRelIntersects","geometryType":"esriGeometryEnvelope"}, outputFormat json,
requestProperties {"computeETag":true,"ETag":"\"c429a59c\""},
responseProperties {"Content-Type":"text/plain"}
But it has no way of telling service name and layer name ...other than using layer index from resourceName if you want to perform layer specific operation in layers.public byte[] HandleRESTRequest(string Capabilities, string resourceName, string operationName,
string operationInput, string outputFormat, string requestProperties, out string responseProperties)
HandleRESTRequest paramater provides following information inside the method
capabilities Map,Query,Data
resourceName layers/0,
operationName query,
operationInput {"returnZ":false,"returnIdsOnly":false,
"where":"","returnDistinctValues":false,"returnM":false,"returnCountOnly":false,"returnExtentsOnly":false,
"returnTrueCurves":false,"returnGeometry":true,
"spatialRel":"esriSpatialRelIntersects","geometryType":"esriGeometryEnvelope"}, outputFormat json,
requestProperties {"computeETag":true,"ETag":"\"c429a59c\""},
responseProperties {"Content-Type":"text/plain"}