Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Web;
|
---|
5 | using System.ServiceModel.Security;
|
---|
6 | using System.Diagnostics;
|
---|
7 |
|
---|
8 | namespace HLWebPluginHost.Views.ServicePrototype {
|
---|
9 | public partial class Index : System.Web.UI.Page {
|
---|
10 |
|
---|
11 | protected void Page_Load(object sender, EventArgs e) {
|
---|
12 | OKBService.OKBServiceClient sc = new OKBService.OKBServiceClient();
|
---|
13 | sc.ClientCredentials.UserName.UserName = "Gerhard";
|
---|
14 | sc.ClientCredentials.UserName.Password = "Gerhard";
|
---|
15 | sc.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None;
|
---|
16 | OKBService.AlgorithmClass[] ac = sc.GetAlgorithmClasses();
|
---|
17 | foreach (OKBService.AlgorithmClass i in ac) {
|
---|
18 | Debug.WriteLine(i.ToString());
|
---|
19 | }
|
---|
20 |
|
---|
21 | sc.Close();
|
---|
22 | }
|
---|
23 | }
|
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.