| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // 此代码由工具生成。
- //
- // 对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
- // 代码重新生成。
- // </auto-generated>
- //------------------------------------------------------------------------------
- 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<Ws.QueryActionResponse> 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<Ws.CompleteActionResponse> 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>, Ws.ISmartPlanWebService
- {
-
- /// <summary>
- /// 实现此分部方法,配置服务终结点。
- /// </summary>
- /// <param name="serviceEndpoint">要配置的终结点</param>
- /// <param name="clientCredentials">客户端凭据</param>
- 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.QueryActionResponse> Ws.ISmartPlanWebService.QueryActionAsync(Ws.QueryActionRequest request)
- {
- return base.Channel.QueryActionAsync(request);
- }
-
- public System.Threading.Tasks.Task<Ws.QueryActionResponse> 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.CompleteActionResponse> Ws.ISmartPlanWebService.CompleteActionAsync(Ws.CompleteActionRequest request)
- {
- return base.Channel.CompleteActionAsync(request);
- }
-
- public System.Threading.Tasks.Task<Ws.CompleteActionResponse> 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.IAsyncResult>(((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.IAsyncResult>(((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,
- }
- }
- }
|