How to query ArcIMS services with ArcObjects
Posted: June 24, 2011 Filed under: c#, gis | Tags: arcobjects, ims, services Leave a comment »
IIMSServiceDescription imsServiceDescription = new IMSServiceNameClass();
imsServiceDescription.URL = @"you server here";
imsServiceDescription.Name = "catalog";
IIMSAxlRequest axlRequest = (IIMSAxlRequest)imsServiceDescription;
String result = axlRequest.SendAxlRequest("<GETCLIENTSERVICES/>", false, null, false, true);
IXmlPropertySet2 xmlProps = new XmlPropertySetClass();
xmlProps.SetXml(result);
object val = new object();
xmlProps.GetAttribute("RESPONSE/SERVICES/SERVICE", "NAME", out val);
object[] vals = (object[]) val;
for (int i = 0; i < vals.Length; i++)
{
Debug.WriteLine(vals[i].ToString());
}
Advertisement