public void AddClickedComplete(process.WebSvcAsync.Result.RetrieveAsyncResult item) { this.Invoke(new MethodInvoker(delegate() { tv_webServices.BeginUpdate(); var wsNode = new TreeNode(item.WebSvcResult.SourceURI); wsNode.ImageKey = "wsdl.png"; wsNode.SelectedImageKey = "wsdl.png"; wsNode.Name = item.WebSvcResult.SourceURI; wsNode.Tag = WSNodeType.WebServiceNode; wsNode.ContextMenuStrip = cms_AddRemoveStartup; foreach (var webMethod in item.WebSvcResult.WebSvcMethods) { TreeNode wmNode = new TreeNode(webMethod.Name); wmNode.ImageKey = "bullet_purple.png"; wmNode.SelectedImageKey = "bullet_green.png"; wmNode.Name = webMethod.Name; wmNode.Tag = WSNodeType.WebMethodNode; wsNode.Nodes.Add(wmNode); } var root = tv_webServices.Nodes[0]; root.Nodes.Add(wsNode); tv_webServices.ExpandAll(); tv_webServices.EndUpdate(); })); }
public void Populate(drexProcess.WebSvcAsync.Result.RetrieveAsyncResult item) { UserControls.uc_SourceBrowser ucWebService = new UserControls.uc_SourceBrowser(); ucWebService.PopulateForm(item.WebSvcResult.WSDL); Dictionary <string, UserControls.uc_Wm> ucWebMethods = new Dictionary <string, UserControls.uc_Wm>(); foreach (var v in item.WebSvcResult.WebSvcMethods) { UserControls.uc_Wm ucWebMethod = new UserControls.uc_Wm(); ucWebMethod.PopulateForm(item.WebSvcResult.SourceURI, v); ucWebMethods[v.Name] = ucWebMethod; } ContainerItemWebSvc wsItem = new ContainerItemWebSvc(item.WebSvcResult.SourceURI, ucWebService, ucWebMethods); _webServiceItems.Add(wsItem); }
void retrieve_OnComplete(object sender, WebSvcAsync.EventParams.AsyncArgsCompleteRetrieve e) { _testHelloWorldResult = e.Result; }
public AsyncArgsCompleteRetrieve(string name, DateTime startTime, DateTime endTime, process.WebSvcAsync.Result.RetrieveAsyncResult result) : base(name, startTime, endTime) { Result = result; }