📄 reference.cs
字号:
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.0.3705.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
//
// This source code was auto-generated by Microsoft.VSDesigner, Version 1.0.3705.0.
//
namespace UseWebService.localhost {
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="FileServiceSoap", Namespace="http://tempuri.org/")]
public class FileService : System.Web.Services.Protocols.SoapHttpClientProtocol {
public Authentication AuthenticationValue;
/// <remarks/>
public FileService() {
this.Url = "http://localhost/WebServiceAuthentication/FileService.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("AuthenticationValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetFile", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string GetFile(string filePath) {
object[] results = this.Invoke("GetFile", new object[] {
filePath});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetFile(string filePath, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetFile", new object[] {
filePath}, callback, asyncState);
}
/// <remarks/>
public string EndGetFile(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("AuthenticationValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ChangePassword", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string ChangePassword(string newPass) {
object[] results = this.Invoke("ChangePassword", new object[] {
newPass});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginChangePassword(string newPass, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("ChangePassword", new object[] {
newPass}, callback, asyncState);
}
/// <remarks/>
public string EndChangePassword(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("AuthenticationValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string AddUser(string userName, string passWord, string auth) {
object[] results = this.Invoke("AddUser", new object[] {
userName,
passWord,
auth});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginAddUser(string userName, string passWord, string auth, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("AddUser", new object[] {
userName,
passWord,
auth}, callback, asyncState);
}
/// <remarks/>
public string EndAddUser(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetList", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] GetList() {
object[] results = this.Invoke("GetList", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetList(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetList", new object[0], callback, asyncState);
}
/// <remarks/>
public string[] EndGetList(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string[])(results[0]));
}
}
/// <remarks/>
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://tempuri.org/", IsNullable=false)]
public class Authentication : SoapHeader {
/// <remarks/>
public string UserName;
/// <remarks/>
public string Password;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -