📄 reference.cs
字号:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.42
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
//
// This source code was auto-generated by Microsoft.CompactFramework.Design.Data, Version 2.0.50727.42.
//
namespace MobileDevelopersHandbook.CustomSoapHeadersService {
using System.Diagnostics;
using System.Web.Services;
using System.ComponentModel;
using System.Web.Services.Protocols;
using System;
using System.Xml.Serialization;
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="SOAPheaderServiceSoap", Namespace="http://tempuri.org/")]
public class SOAPheaderService : System.Web.Services.Protocols.SoapHttpClientProtocol {
public AuthHeader AuthHeaderValue;
/// <remarks/>
public SOAPheaderService() {
this.Url = "http://myServer/CustomSoapHeadersService/CustomSoapHeadersService.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("AuthHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Authenticate", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public bool Authenticate() {
object[] results = this.Invoke("Authenticate", new object[0]);
return ((bool)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginAuthenticate(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("Authenticate", new object[0], callback, asyncState);
}
/// <remarks/>
public bool EndAuthenticate(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((bool)(results[0]));
}
}
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://tempuri.org/", IsNullable=false)]
public class AuthHeader : System.Web.Services.Protocols.SoapHeader {
/// <remarks/>
public string Username;
/// <remarks/>
public string Password;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -