public MainWindow() { InitializeComponent(); string url = "https://SERVERNAME/CMApplicationCatalog/ApplicationViewService.asmx"; BasicHttpBinding binding = new BasicHttpBinding(); binding.Security.Mode = BasicHttpSecurityMode.Transport; binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows; ApplicationCatalogService.ApplicationViewServiceSoapClient sc = new ApplicationViewServiceSoapClient(binding,new EndpointAddress(url)); int total = 0; AppDetailView[] apps = sc.GetApplications( ApplicationProperty.Name, null, ApplicationProperty.Name, "", 20, 0, true, ApplicationClassicDisplayName.PackageProgramName, false, null, out total); foreach (var item in apps) { MessageBox.Show(item.Name); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)