Reference.cs
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:4k
源码类别:

C#编程

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. // <autogenerated>
  3. //     This code was generated by a tool.
  4. //     Runtime Version: 1.1.4322.573
  5. //
  6. //     Changes to this file may cause incorrect behavior and will be lost if 
  7. //     the code is regenerated.
  8. // </autogenerated>
  9. //------------------------------------------------------------------------------
  10. // 
  11. // This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.573.
  12. // 
  13. namespace PCSWebClient3.authenticateService {
  14.     using System.Diagnostics;
  15.     using System.Xml.Serialization;
  16.     using System;
  17.     using System.Web.Services.Protocols;
  18.     using System.ComponentModel;
  19.     using System.Web.Services;
  20.     
  21.     
  22.     /// <remarks/>
  23.     [System.Diagnostics.DebuggerStepThroughAttribute()]
  24.     [System.ComponentModel.DesignerCategoryAttribute("code")]
  25.     [System.Web.Services.WebServiceBindingAttribute(Name="Service1Soap", Namespace="http://tempuri.org/")]
  26.     public class Service1 : System.Web.Services.Protocols.SoapHttpClientProtocol {
  27.         
  28.         public AuthenticationToken AuthenticationTokenValue;
  29.         
  30.         /// <remarks/>
  31.         public Service1() {
  32.             this.Url = "http://localhost/PCSWebSrv3/Service1.asmx";
  33.         }
  34.         
  35.         /// <remarks/>
  36.         [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Login", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  37.         public System.Guid Login(string userName, string password) {
  38.             object[] results = this.Invoke("Login", new object[] {
  39.                         userName,
  40.                         password});
  41.             return ((System.Guid)(results[0]));
  42.         }
  43.         
  44.         /// <remarks/>
  45.         public System.IAsyncResult BeginLogin(string userName, string password, System.AsyncCallback callback, object asyncState) {
  46.             return this.BeginInvoke("Login", new object[] {
  47.                         userName,
  48.                         password}, callback, asyncState);
  49.         }
  50.         
  51.         /// <remarks/>
  52.         public System.Guid EndLogin(System.IAsyncResult asyncResult) {
  53.             object[] results = this.EndInvoke(asyncResult);
  54.             return ((System.Guid)(results[0]));
  55.         }
  56.         
  57.         /// <remarks/>
  58.         [System.Web.Services.Protocols.SoapHeaderAttribute("AuthenticationTokenValue")]
  59.         [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DoSomething", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  60.         public string DoSomething() {
  61.             object[] results = this.Invoke("DoSomething", new object[0]);
  62.             return ((string)(results[0]));
  63.         }
  64.         
  65.         /// <remarks/>
  66.         public System.IAsyncResult BeginDoSomething(System.AsyncCallback callback, object asyncState) {
  67.             return this.BeginInvoke("DoSomething", new object[0], callback, asyncState);
  68.         }
  69.         
  70.         /// <remarks/>
  71.         public string EndDoSomething(System.IAsyncResult asyncResult) {
  72.             object[] results = this.EndInvoke(asyncResult);
  73.             return ((string)(results[0]));
  74.         }
  75.     }
  76.     
  77.     /// <remarks/>
  78.     [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
  79.     [System.Xml.Serialization.XmlRootAttribute(Namespace="http://tempuri.org/", IsNullable=false)]
  80.     public class AuthenticationToken : System.Web.Services.Protocols.SoapHeader {
  81.         
  82.         /// <remarks/>
  83.         public System.Guid InnerToken;
  84.     }
  85. }