Aceesing layerid in rest SOE java

790
2
05-19-2014 10:52 PM
HaiderAli
New Contributor
I have an SOE in which i have to acess the layer id in the url
e.g i have

http://serverurl/rest/services/Utility/MapServer/exts/Utility/routeLayers/0/IdentifyRoute?...............

how can i get the layer id(0) from the url in SOE
0 Kudos
2 Replies
RaymondHuang
Occasional Contributor
Hi Haider Ali,

I am sorry but I do not fully understand your query. Do you already have a SOE in place? Is yes, can you share what do you wish to do with it? Are you trying to access layerid 0 as a feature layer for overlaying? Or for querying the table with?

If you can help elaborate more on what you are trying to achieve, I am sure others in the forum will be able to better clear your doubts.

Cheers,
Raymond
0 Kudos
HaiderAli
New Contributor
Actually i have SOE in c# (http://www.arcgis.com/home/item.html?id=e3bfa7c991e34aa8872c937ca9169507) and i want to convert it to java , in this SOE there is a function as below
   private byte[] PointLocationOperHandler(NameValueCollection boundVariables, JsonObject operationInput, string outputFormat, string requestProperties, out string responseProperties)
        {
            responseProperties = "{\"Content-Type\" : \"application/json\"}"; ;
           
            int routeLayerID = Convert.ToInt32(boundVariables["RouteLayersID"], CultureInfo.InvariantCulture);


when i am using eclipse plugin to generate the SOE template i cant find boundVariables

And if you can please refer material or book for arcobjects in java
0 Kudos