📄 mysoapheaders.cs
字号:
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.0.2914.16
//
// 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 wsdl, Version=1.0.2914.16.
//
namespace mySoapHeaders {
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.Web.Services;
[System.Web.Services.WebServiceBindingAttribute(Name="HeaderServiceSoap", Namespace="http://tempuri.org/")]
public class HeaderService : System.Web.Services.Protocols.SoapHttpClientProtocol {
public mySoapHeader mySoapHeaderValue;
[System.Diagnostics.DebuggerStepThroughAttribute()]
public HeaderService() {
this.Url = "http://127.0.0.1/samples/chapter19/webservice/mysoapheaders.asmx";
}
[System.Web.Services.Protocols.SoapHeaderAttribute("mySoapHeaderValue")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SecureMethod", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string SecureMethod() {
object[] results = this.Invoke("SecureMethod", new object[0]);
return ((string)(results[0]));
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
public System.IAsyncResult BeginSecureMethod(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("SecureMethod", new object[0], callback, asyncState);
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
public string EndSecureMethod(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
}
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://tempuri.org/", IsNullable=false)]
public class mySoapHeader : SoapHeader {
public string Username;
public string Password;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -