Reference.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // 此代码由工具生成。
  4. //
  5. // 对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
  6. // 代码重新生成。
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. namespace Ws
  10. {
  11. using System.Runtime.Serialization;
  12. [System.Diagnostics.DebuggerStepThroughAttribute()]
  13. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  14. [System.Runtime.Serialization.DataContractAttribute(Name="AjaxResultWs", Namespace="http://tempuri.org/")]
  15. public partial class AjaxResultWs : object
  16. {
  17. private bool SuccessField;
  18. private string MessageField;
  19. private string IdField;
  20. private string NameField;
  21. private bool IsCompleteField;
  22. private int TotalCountField;
  23. [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
  24. public bool Success
  25. {
  26. get
  27. {
  28. return this.SuccessField;
  29. }
  30. set
  31. {
  32. this.SuccessField = value;
  33. }
  34. }
  35. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
  36. public string Message
  37. {
  38. get
  39. {
  40. return this.MessageField;
  41. }
  42. set
  43. {
  44. this.MessageField = value;
  45. }
  46. }
  47. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
  48. public string Id
  49. {
  50. get
  51. {
  52. return this.IdField;
  53. }
  54. set
  55. {
  56. this.IdField = value;
  57. }
  58. }
  59. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
  60. public string Name
  61. {
  62. get
  63. {
  64. return this.NameField;
  65. }
  66. set
  67. {
  68. this.NameField = value;
  69. }
  70. }
  71. [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true, Order=4)]
  72. public bool IsComplete
  73. {
  74. get
  75. {
  76. return this.IsCompleteField;
  77. }
  78. set
  79. {
  80. this.IsCompleteField = value;
  81. }
  82. }
  83. [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true, Order=5)]
  84. public int TotalCount
  85. {
  86. get
  87. {
  88. return this.TotalCountField;
  89. }
  90. set
  91. {
  92. this.TotalCountField = value;
  93. }
  94. }
  95. }
  96. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  97. [System.ServiceModel.ServiceContractAttribute(ConfigurationName="Ws.ISmartPlanWebService")]
  98. public interface ISmartPlanWebService
  99. {
  100. // CODEGEN: 正在生成消息协定,因为命名空间 http://tempuri.org/ 的元素名称 QueryActionResult 未标记为 nillable
  101. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartPlanWebService/QueryAction", ReplyAction="*")]
  102. Ws.QueryActionResponse QueryAction(Ws.QueryActionRequest request);
  103. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartPlanWebService/QueryAction", ReplyAction="*")]
  104. System.Threading.Tasks.Task<Ws.QueryActionResponse> QueryActionAsync(Ws.QueryActionRequest request);
  105. // CODEGEN: 正在生成消息协定,因为命名空间 http://tempuri.org/ 的元素名称 id 未标记为 nillable
  106. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartPlanWebService/CompleteAction", ReplyAction="*")]
  107. Ws.CompleteActionResponse CompleteAction(Ws.CompleteActionRequest request);
  108. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartPlanWebService/CompleteAction", ReplyAction="*")]
  109. System.Threading.Tasks.Task<Ws.CompleteActionResponse> CompleteActionAsync(Ws.CompleteActionRequest request);
  110. }
  111. [System.Diagnostics.DebuggerStepThroughAttribute()]
  112. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  113. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  114. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  115. public partial class QueryActionRequest
  116. {
  117. [System.ServiceModel.MessageBodyMemberAttribute(Name="QueryAction", Namespace="http://tempuri.org/", Order=0)]
  118. public Ws.QueryActionRequestBody Body;
  119. public QueryActionRequest()
  120. {
  121. }
  122. public QueryActionRequest(Ws.QueryActionRequestBody Body)
  123. {
  124. this.Body = Body;
  125. }
  126. }
  127. [System.Diagnostics.DebuggerStepThroughAttribute()]
  128. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  129. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  130. [System.Runtime.Serialization.DataContractAttribute()]
  131. public partial class QueryActionRequestBody
  132. {
  133. public QueryActionRequestBody()
  134. {
  135. }
  136. }
  137. [System.Diagnostics.DebuggerStepThroughAttribute()]
  138. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  139. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  140. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  141. public partial class QueryActionResponse
  142. {
  143. [System.ServiceModel.MessageBodyMemberAttribute(Name="QueryActionResponse", Namespace="http://tempuri.org/", Order=0)]
  144. public Ws.QueryActionResponseBody Body;
  145. public QueryActionResponse()
  146. {
  147. }
  148. public QueryActionResponse(Ws.QueryActionResponseBody Body)
  149. {
  150. this.Body = Body;
  151. }
  152. }
  153. [System.Diagnostics.DebuggerStepThroughAttribute()]
  154. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  155. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  156. [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
  157. public partial class QueryActionResponseBody
  158. {
  159. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
  160. public Ws.AjaxResultWs QueryActionResult;
  161. public QueryActionResponseBody()
  162. {
  163. }
  164. public QueryActionResponseBody(Ws.AjaxResultWs QueryActionResult)
  165. {
  166. this.QueryActionResult = QueryActionResult;
  167. }
  168. }
  169. [System.Diagnostics.DebuggerStepThroughAttribute()]
  170. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  171. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  172. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  173. public partial class CompleteActionRequest
  174. {
  175. [System.ServiceModel.MessageBodyMemberAttribute(Name="CompleteAction", Namespace="http://tempuri.org/", Order=0)]
  176. public Ws.CompleteActionRequestBody Body;
  177. public CompleteActionRequest()
  178. {
  179. }
  180. public CompleteActionRequest(Ws.CompleteActionRequestBody Body)
  181. {
  182. this.Body = Body;
  183. }
  184. }
  185. [System.Diagnostics.DebuggerStepThroughAttribute()]
  186. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  187. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  188. [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
  189. public partial class CompleteActionRequestBody
  190. {
  191. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
  192. public string id;
  193. public CompleteActionRequestBody()
  194. {
  195. }
  196. public CompleteActionRequestBody(string id)
  197. {
  198. this.id = id;
  199. }
  200. }
  201. [System.Diagnostics.DebuggerStepThroughAttribute()]
  202. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  203. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  204. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  205. public partial class CompleteActionResponse
  206. {
  207. [System.ServiceModel.MessageBodyMemberAttribute(Name="CompleteActionResponse", Namespace="http://tempuri.org/", Order=0)]
  208. public Ws.CompleteActionResponseBody Body;
  209. public CompleteActionResponse()
  210. {
  211. }
  212. public CompleteActionResponse(Ws.CompleteActionResponseBody Body)
  213. {
  214. this.Body = Body;
  215. }
  216. }
  217. [System.Diagnostics.DebuggerStepThroughAttribute()]
  218. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  219. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  220. [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
  221. public partial class CompleteActionResponseBody
  222. {
  223. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
  224. public Ws.AjaxResultWs CompleteActionResult;
  225. public CompleteActionResponseBody()
  226. {
  227. }
  228. public CompleteActionResponseBody(Ws.AjaxResultWs CompleteActionResult)
  229. {
  230. this.CompleteActionResult = CompleteActionResult;
  231. }
  232. }
  233. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  234. public interface ISmartPlanWebServiceChannel : Ws.ISmartPlanWebService, System.ServiceModel.IClientChannel
  235. {
  236. }
  237. [System.Diagnostics.DebuggerStepThroughAttribute()]
  238. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  239. public partial class SmartPlanWebServiceClient : System.ServiceModel.ClientBase<Ws.ISmartPlanWebService>, Ws.ISmartPlanWebService
  240. {
  241. /// <summary>
  242. /// 实现此分部方法,配置服务终结点。
  243. /// </summary>
  244. /// <param name="serviceEndpoint">要配置的终结点</param>
  245. /// <param name="clientCredentials">客户端凭据</param>
  246. static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
  247. public SmartPlanWebServiceClient() :
  248. base(SmartPlanWebServiceClient.GetDefaultBinding(), SmartPlanWebServiceClient.GetDefaultEndpointAddress())
  249. {
  250. this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding.ToString();
  251. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  252. }
  253. public SmartPlanWebServiceClient(EndpointConfiguration endpointConfiguration) :
  254. base(SmartPlanWebServiceClient.GetBindingForEndpoint(endpointConfiguration), SmartPlanWebServiceClient.GetEndpointAddress(endpointConfiguration))
  255. {
  256. this.Endpoint.Name = endpointConfiguration.ToString();
  257. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  258. }
  259. public SmartPlanWebServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
  260. base(SmartPlanWebServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
  261. {
  262. this.Endpoint.Name = endpointConfiguration.ToString();
  263. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  264. }
  265. public SmartPlanWebServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
  266. base(SmartPlanWebServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
  267. {
  268. this.Endpoint.Name = endpointConfiguration.ToString();
  269. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  270. }
  271. public SmartPlanWebServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  272. base(binding, remoteAddress)
  273. {
  274. }
  275. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  276. Ws.QueryActionResponse Ws.ISmartPlanWebService.QueryAction(Ws.QueryActionRequest request)
  277. {
  278. return base.Channel.QueryAction(request);
  279. }
  280. public Ws.AjaxResultWs QueryAction()
  281. {
  282. Ws.QueryActionRequest inValue = new Ws.QueryActionRequest();
  283. inValue.Body = new Ws.QueryActionRequestBody();
  284. Ws.QueryActionResponse retVal = ((Ws.ISmartPlanWebService)(this)).QueryAction(inValue);
  285. return retVal.Body.QueryActionResult;
  286. }
  287. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  288. System.Threading.Tasks.Task<Ws.QueryActionResponse> Ws.ISmartPlanWebService.QueryActionAsync(Ws.QueryActionRequest request)
  289. {
  290. return base.Channel.QueryActionAsync(request);
  291. }
  292. public System.Threading.Tasks.Task<Ws.QueryActionResponse> QueryActionAsync()
  293. {
  294. Ws.QueryActionRequest inValue = new Ws.QueryActionRequest();
  295. inValue.Body = new Ws.QueryActionRequestBody();
  296. return ((Ws.ISmartPlanWebService)(this)).QueryActionAsync(inValue);
  297. }
  298. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  299. Ws.CompleteActionResponse Ws.ISmartPlanWebService.CompleteAction(Ws.CompleteActionRequest request)
  300. {
  301. return base.Channel.CompleteAction(request);
  302. }
  303. public Ws.AjaxResultWs CompleteAction(string id)
  304. {
  305. Ws.CompleteActionRequest inValue = new Ws.CompleteActionRequest();
  306. inValue.Body = new Ws.CompleteActionRequestBody();
  307. inValue.Body.id = id;
  308. Ws.CompleteActionResponse retVal = ((Ws.ISmartPlanWebService)(this)).CompleteAction(inValue);
  309. return retVal.Body.CompleteActionResult;
  310. }
  311. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  312. System.Threading.Tasks.Task<Ws.CompleteActionResponse> Ws.ISmartPlanWebService.CompleteActionAsync(Ws.CompleteActionRequest request)
  313. {
  314. return base.Channel.CompleteActionAsync(request);
  315. }
  316. public System.Threading.Tasks.Task<Ws.CompleteActionResponse> CompleteActionAsync(string id)
  317. {
  318. Ws.CompleteActionRequest inValue = new Ws.CompleteActionRequest();
  319. inValue.Body = new Ws.CompleteActionRequestBody();
  320. inValue.Body.id = id;
  321. return ((Ws.ISmartPlanWebService)(this)).CompleteActionAsync(inValue);
  322. }
  323. public virtual System.Threading.Tasks.Task OpenAsync()
  324. {
  325. return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
  326. }
  327. public virtual System.Threading.Tasks.Task CloseAsync()
  328. {
  329. return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
  330. }
  331. private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
  332. {
  333. if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding))
  334. {
  335. System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
  336. result.MaxBufferSize = int.MaxValue;
  337. result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
  338. result.MaxReceivedMessageSize = int.MaxValue;
  339. result.AllowCookies = true;
  340. return result;
  341. }
  342. throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
  343. }
  344. private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
  345. {
  346. if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding))
  347. {
  348. return new System.ServiceModel.EndpointAddress("http://shvber.com:5032/WebService.asmx");
  349. }
  350. throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
  351. }
  352. private static System.ServiceModel.Channels.Binding GetDefaultBinding()
  353. {
  354. return SmartPlanWebServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding);
  355. }
  356. private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
  357. {
  358. return SmartPlanWebServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding);
  359. }
  360. public enum EndpointConfiguration
  361. {
  362. BasicHttpBinding,
  363. }
  364. }
  365. }