//------------------------------------------------------------------------------
//
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
// 代码重新生成。
//
//------------------------------------------------------------------------------
namespace Ws
{
using System.Runtime.Serialization;
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
[System.Runtime.Serialization.DataContractAttribute(Name="AjaxResultWs", Namespace="http://tempuri.org/")]
public partial class AjaxResultWs : object
{
private bool SuccessField;
private string MessageField;
private string IdField;
private string NameField;
private bool IsCompleteField;
private int TotalCountField;
[System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
public bool Success
{
get
{
return this.SuccessField;
}
set
{
this.SuccessField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
public string Message
{
get
{
return this.MessageField;
}
set
{
this.MessageField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
public string Id
{
get
{
return this.IdField;
}
set
{
this.IdField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
public string Name
{
get
{
return this.NameField;
}
set
{
this.NameField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute(IsRequired=true, Order=4)]
public bool IsComplete
{
get
{
return this.IsCompleteField;
}
set
{
this.IsCompleteField = value;
}
}
[System.Runtime.Serialization.DataMemberAttribute(IsRequired=true, Order=5)]
public int TotalCount
{
get
{
return this.TotalCountField;
}
set
{
this.TotalCountField = value;
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="Ws.ISmartPlanWebService")]
public interface ISmartPlanWebService
{
// CODEGEN: 正在生成消息协定,因为命名空间 http://tempuri.org/ 的元素名称 QueryActionResult 未标记为 nillable
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartPlanWebService/QueryAction", ReplyAction="*")]
Ws.QueryActionResponse QueryAction(Ws.QueryActionRequest request);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartPlanWebService/QueryAction", ReplyAction="*")]
System.Threading.Tasks.Task QueryActionAsync(Ws.QueryActionRequest request);
// CODEGEN: 正在生成消息协定,因为命名空间 http://tempuri.org/ 的元素名称 id 未标记为 nillable
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartPlanWebService/CompleteAction", ReplyAction="*")]
Ws.CompleteActionResponse CompleteAction(Ws.CompleteActionRequest request);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartPlanWebService/CompleteAction", ReplyAction="*")]
System.Threading.Tasks.Task CompleteActionAsync(Ws.CompleteActionRequest request);
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
public partial class QueryActionRequest
{
[System.ServiceModel.MessageBodyMemberAttribute(Name="QueryAction", Namespace="http://tempuri.org/", Order=0)]
public Ws.QueryActionRequestBody Body;
public QueryActionRequest()
{
}
public QueryActionRequest(Ws.QueryActionRequestBody Body)
{
this.Body = Body;
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.Runtime.Serialization.DataContractAttribute()]
public partial class QueryActionRequestBody
{
public QueryActionRequestBody()
{
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
public partial class QueryActionResponse
{
[System.ServiceModel.MessageBodyMemberAttribute(Name="QueryActionResponse", Namespace="http://tempuri.org/", Order=0)]
public Ws.QueryActionResponseBody Body;
public QueryActionResponse()
{
}
public QueryActionResponse(Ws.QueryActionResponseBody Body)
{
this.Body = Body;
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
public partial class QueryActionResponseBody
{
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
public Ws.AjaxResultWs QueryActionResult;
public QueryActionResponseBody()
{
}
public QueryActionResponseBody(Ws.AjaxResultWs QueryActionResult)
{
this.QueryActionResult = QueryActionResult;
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
public partial class CompleteActionRequest
{
[System.ServiceModel.MessageBodyMemberAttribute(Name="CompleteAction", Namespace="http://tempuri.org/", Order=0)]
public Ws.CompleteActionRequestBody Body;
public CompleteActionRequest()
{
}
public CompleteActionRequest(Ws.CompleteActionRequestBody Body)
{
this.Body = Body;
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
public partial class CompleteActionRequestBody
{
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
public string id;
public CompleteActionRequestBody()
{
}
public CompleteActionRequestBody(string id)
{
this.id = id;
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
public partial class CompleteActionResponse
{
[System.ServiceModel.MessageBodyMemberAttribute(Name="CompleteActionResponse", Namespace="http://tempuri.org/", Order=0)]
public Ws.CompleteActionResponseBody Body;
public CompleteActionResponse()
{
}
public CompleteActionResponse(Ws.CompleteActionResponseBody Body)
{
this.Body = Body;
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
public partial class CompleteActionResponseBody
{
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
public Ws.AjaxResultWs CompleteActionResult;
public CompleteActionResponseBody()
{
}
public CompleteActionResponseBody(Ws.AjaxResultWs CompleteActionResult)
{
this.CompleteActionResult = CompleteActionResult;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
public interface ISmartPlanWebServiceChannel : Ws.ISmartPlanWebService, System.ServiceModel.IClientChannel
{
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
public partial class SmartPlanWebServiceClient : System.ServiceModel.ClientBase, Ws.ISmartPlanWebService
{
///
/// 实现此分部方法,配置服务终结点。
///
/// 要配置的终结点
/// 客户端凭据
static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
public SmartPlanWebServiceClient() :
base(SmartPlanWebServiceClient.GetDefaultBinding(), SmartPlanWebServiceClient.GetDefaultEndpointAddress())
{
this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
}
public SmartPlanWebServiceClient(EndpointConfiguration endpointConfiguration) :
base(SmartPlanWebServiceClient.GetBindingForEndpoint(endpointConfiguration), SmartPlanWebServiceClient.GetEndpointAddress(endpointConfiguration))
{
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
}
public SmartPlanWebServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
base(SmartPlanWebServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
{
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
}
public SmartPlanWebServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
base(SmartPlanWebServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
{
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
}
public SmartPlanWebServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress)
{
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
Ws.QueryActionResponse Ws.ISmartPlanWebService.QueryAction(Ws.QueryActionRequest request)
{
return base.Channel.QueryAction(request);
}
public Ws.AjaxResultWs QueryAction()
{
Ws.QueryActionRequest inValue = new Ws.QueryActionRequest();
inValue.Body = new Ws.QueryActionRequestBody();
Ws.QueryActionResponse retVal = ((Ws.ISmartPlanWebService)(this)).QueryAction(inValue);
return retVal.Body.QueryActionResult;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
System.Threading.Tasks.Task Ws.ISmartPlanWebService.QueryActionAsync(Ws.QueryActionRequest request)
{
return base.Channel.QueryActionAsync(request);
}
public System.Threading.Tasks.Task QueryActionAsync()
{
Ws.QueryActionRequest inValue = new Ws.QueryActionRequest();
inValue.Body = new Ws.QueryActionRequestBody();
return ((Ws.ISmartPlanWebService)(this)).QueryActionAsync(inValue);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
Ws.CompleteActionResponse Ws.ISmartPlanWebService.CompleteAction(Ws.CompleteActionRequest request)
{
return base.Channel.CompleteAction(request);
}
public Ws.AjaxResultWs CompleteAction(string id)
{
Ws.CompleteActionRequest inValue = new Ws.CompleteActionRequest();
inValue.Body = new Ws.CompleteActionRequestBody();
inValue.Body.id = id;
Ws.CompleteActionResponse retVal = ((Ws.ISmartPlanWebService)(this)).CompleteAction(inValue);
return retVal.Body.CompleteActionResult;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
System.Threading.Tasks.Task Ws.ISmartPlanWebService.CompleteActionAsync(Ws.CompleteActionRequest request)
{
return base.Channel.CompleteActionAsync(request);
}
public System.Threading.Tasks.Task CompleteActionAsync(string id)
{
Ws.CompleteActionRequest inValue = new Ws.CompleteActionRequest();
inValue.Body = new Ws.CompleteActionRequestBody();
inValue.Body.id = id;
return ((Ws.ISmartPlanWebService)(this)).CompleteActionAsync(inValue);
}
public virtual System.Threading.Tasks.Task OpenAsync()
{
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
}
public virtual System.Threading.Tasks.Task CloseAsync()
{
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
}
private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
{
if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding))
{
System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
result.MaxBufferSize = int.MaxValue;
result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
result.MaxReceivedMessageSize = int.MaxValue;
result.AllowCookies = true;
return result;
}
throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
}
private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
{
if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding))
{
return new System.ServiceModel.EndpointAddress("http://shvber.com:5032/WebService.asmx");
}
throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
}
private static System.ServiceModel.Channels.Binding GetDefaultBinding()
{
return SmartPlanWebServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding);
}
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
{
return SmartPlanWebServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding);
}
public enum EndpointConfiguration
{
BasicHttpBinding,
}
}
}