private void registerUserLocation() { // Example of how to construct a complex type XmlmcParam param = xmlmc.AddParam("location"); param.Add("latitude", 51.5575); param.Add("longitude", 0.4026); param.Add("elevation", 0); param.Add("placeName", "Odyssey Business Park"); param.Add("timestamp", DateTime.Now.ToUniversalTime()); // To output window System.Diagnostics.Debug.Print(xmlmc.GetParamsXML()); xmlmc.Invoke("session", "locationRegisterCurrent"); }
public void TestComplexType() { xmlmcService.ClearParams(); XmlmcParam param = xmlmcService.AddParam("location"); param.Add("latitude", 51.5575); param.Add("longitude", 0.4026); param.Add("elevation", 0); param.Add("placeName", "Odyssey Business Park"); param.Add("timestamp", DateTime.Now.ToUniversalTime()); string xml = xmlmcService.GetParamsXML(); xmlmcService.Invoke("session", "locationRegisterCurrent"); string results = xmlmcService.GetResponseXML(); Assert.IsNotNull(results); }