Good afternoon,Does anyone have any example code or can point me in the direction of some example code for calling a Server Object Extension from an ArcGIS Mobile app? I'm trying to call an existing SOE from a custom task and I'm not having any luck. What I've tried so far is using the JSON.NET JSON framework to call it with HTTPWebRequest and HTTPWebResponse which has not proven successful. string uri = @"http://kytcmaps.******.*****.****/ArcGIS/rest/services/MeasuredRoute/MapServer/exts/KYTCGISREST/InCorpBounds";
string url = uri + string.Format("?X={0}&Y={1}&f=pjson", C.X.ToString(), C.Y.ToString());
HttpWebRequest request1 = (HttpWebRequest)WebRequest.Create(url);
request1.Timeout = 60000;
request1.Method = "GET";
string jsonString = string.Empty;
using (HttpWebResponse response1 = (HttpWebResponse)request1.GetResponse())
{
Stream responseStream1 = response1.GetResponseStream();
using (StreamReader reader1 = new StreamReader(responseStream1))
{
jsonString = reader1.ReadToEnd();
reader1.Close();
}
}
CityInfo CI = JsonConvert.DeserializeObject<CityInfo>(jsonString);
Any suggestions are appreciated.Scott DickisonSenior DeveloperGIS Support ServicesOffice of Information TechnologyKentucky Transportation Cabinet200 Mero St, W4Frankfort, KY 40622