Reference.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. //
  5. // Changes to this file may cause incorrect behavior and will be lost if
  6. // the code is regenerated.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. [assembly: System.Runtime.Serialization.ContractNamespaceAttribute("http://tempuri.org/", ClrNamespace="tempuri.org")]
  10. namespace tempuri.org
  11. {
  12. using System.Runtime.Serialization;
  13. [System.Diagnostics.DebuggerStepThroughAttribute()]
  14. [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.4")]
  15. [System.Runtime.Serialization.DataContractAttribute(Name="CustomerTables", Namespace="http://tempuri.org/")]
  16. public partial class CustomerTables : object
  17. {
  18. private string TableNameField;
  19. private tempuri.org.CustomerColumns[] ColumnsField;
  20. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)]
  21. public string TableName
  22. {
  23. get
  24. {
  25. return this.TableNameField;
  26. }
  27. set
  28. {
  29. this.TableNameField = value;
  30. }
  31. }
  32. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
  33. public tempuri.org.CustomerColumns[] Columns
  34. {
  35. get
  36. {
  37. return this.ColumnsField;
  38. }
  39. set
  40. {
  41. this.ColumnsField = value;
  42. }
  43. }
  44. }
  45. [System.Diagnostics.DebuggerStepThroughAttribute()]
  46. [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.4")]
  47. [System.Runtime.Serialization.DataContractAttribute(Name="CustomerColumns", Namespace="http://tempuri.org/")]
  48. public partial class CustomerColumns : object
  49. {
  50. private string FieldNameField;
  51. private string FieldTypeField;
  52. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)]
  53. public string FieldName
  54. {
  55. get
  56. {
  57. return this.FieldNameField;
  58. }
  59. set
  60. {
  61. this.FieldNameField = value;
  62. }
  63. }
  64. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)]
  65. public string FieldType
  66. {
  67. get
  68. {
  69. return this.FieldTypeField;
  70. }
  71. set
  72. {
  73. this.FieldTypeField = value;
  74. }
  75. }
  76. }
  77. }
  78. [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.4")]
  79. [System.ServiceModel.ServiceContractAttribute(ConfigurationName="GetDataBaseSoap")]
  80. public interface GetDataBaseSoap
  81. {
  82. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/DataBase", ReplyAction="*")]
  83. System.Threading.Tasks.Task<DataBaseResponse> DataBaseAsync(DataBaseRequest request);
  84. }
  85. [System.Diagnostics.DebuggerStepThroughAttribute()]
  86. [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.4")]
  87. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  88. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  89. public partial class DataBaseRequest
  90. {
  91. [System.ServiceModel.MessageBodyMemberAttribute(Name="DataBase", Namespace="http://tempuri.org/", Order=0)]
  92. public DataBaseRequestBody Body;
  93. public DataBaseRequest()
  94. {
  95. }
  96. public DataBaseRequest(DataBaseRequestBody Body)
  97. {
  98. this.Body = Body;
  99. }
  100. }
  101. [System.Diagnostics.DebuggerStepThroughAttribute()]
  102. [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.4")]
  103. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  104. [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
  105. public partial class DataBaseRequestBody
  106. {
  107. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
  108. public string appid;
  109. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
  110. public string appkey;
  111. public DataBaseRequestBody()
  112. {
  113. }
  114. public DataBaseRequestBody(string appid, string appkey)
  115. {
  116. this.appid = appid;
  117. this.appkey = appkey;
  118. }
  119. }
  120. [System.Diagnostics.DebuggerStepThroughAttribute()]
  121. [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.4")]
  122. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  123. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  124. public partial class DataBaseResponse
  125. {
  126. [System.ServiceModel.MessageBodyMemberAttribute(Name="DataBaseResponse", Namespace="http://tempuri.org/", Order=0)]
  127. public DataBaseResponseBody Body;
  128. public DataBaseResponse()
  129. {
  130. }
  131. public DataBaseResponse(DataBaseResponseBody Body)
  132. {
  133. this.Body = Body;
  134. }
  135. }
  136. [System.Diagnostics.DebuggerStepThroughAttribute()]
  137. [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.4")]
  138. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  139. [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
  140. public partial class DataBaseResponseBody
  141. {
  142. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
  143. public tempuri.org.CustomerTables[] DataBaseResult;
  144. public DataBaseResponseBody()
  145. {
  146. }
  147. public DataBaseResponseBody(tempuri.org.CustomerTables[] DataBaseResult)
  148. {
  149. this.DataBaseResult = DataBaseResult;
  150. }
  151. }
  152. [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.4")]
  153. public interface GetDataBaseSoapChannel : GetDataBaseSoap, System.ServiceModel.IClientChannel
  154. {
  155. }
  156. [System.Diagnostics.DebuggerStepThroughAttribute()]
  157. [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.4")]
  158. public partial class GetDataBaseSoapClient : System.ServiceModel.ClientBase<GetDataBaseSoap>, GetDataBaseSoap
  159. {
  160. /// <summary>
  161. /// Implement this partial method to configure the service endpoint.
  162. /// </summary>
  163. /// <param name="serviceEndpoint">The endpoint to configure</param>
  164. /// <param name="clientCredentials">The client credentials</param>
  165. static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
  166. public GetDataBaseSoapClient(EndpointConfiguration endpointConfiguration) :
  167. base(GetDataBaseSoapClient.GetBindingForEndpoint(endpointConfiguration), GetDataBaseSoapClient.GetEndpointAddress(endpointConfiguration))
  168. {
  169. this.Endpoint.Name = endpointConfiguration.ToString();
  170. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  171. }
  172. public GetDataBaseSoapClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
  173. base(GetDataBaseSoapClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
  174. {
  175. this.Endpoint.Name = endpointConfiguration.ToString();
  176. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  177. }
  178. public GetDataBaseSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
  179. base(GetDataBaseSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
  180. {
  181. this.Endpoint.Name = endpointConfiguration.ToString();
  182. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  183. }
  184. public GetDataBaseSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  185. base(binding, remoteAddress)
  186. {
  187. }
  188. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  189. System.Threading.Tasks.Task<DataBaseResponse> GetDataBaseSoap.DataBaseAsync(DataBaseRequest request)
  190. {
  191. return base.Channel.DataBaseAsync(request);
  192. }
  193. public System.Threading.Tasks.Task<DataBaseResponse> DataBaseAsync(string appid, string appkey)
  194. {
  195. DataBaseRequest inValue = new DataBaseRequest();
  196. inValue.Body = new DataBaseRequestBody();
  197. inValue.Body.appid = appid;
  198. inValue.Body.appkey = appkey;
  199. return ((GetDataBaseSoap)(this)).DataBaseAsync(inValue);
  200. }
  201. public virtual System.Threading.Tasks.Task OpenAsync()
  202. {
  203. return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
  204. }
  205. public virtual System.Threading.Tasks.Task CloseAsync()
  206. {
  207. return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
  208. }
  209. private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
  210. {
  211. if ((endpointConfiguration == EndpointConfiguration.GetDataBaseSoap))
  212. {
  213. System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
  214. result.MaxBufferSize = int.MaxValue;
  215. result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
  216. result.MaxReceivedMessageSize = int.MaxValue;
  217. result.AllowCookies = true;
  218. return result;
  219. }
  220. if ((endpointConfiguration == EndpointConfiguration.GetDataBaseSoap12))
  221. {
  222. System.ServiceModel.Channels.CustomBinding result = new System.ServiceModel.Channels.CustomBinding();
  223. System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement();
  224. textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None);
  225. result.Elements.Add(textBindingElement);
  226. System.ServiceModel.Channels.HttpTransportBindingElement httpBindingElement = new System.ServiceModel.Channels.HttpTransportBindingElement();
  227. httpBindingElement.AllowCookies = true;
  228. httpBindingElement.MaxBufferSize = int.MaxValue;
  229. httpBindingElement.MaxReceivedMessageSize = int.MaxValue;
  230. result.Elements.Add(httpBindingElement);
  231. return result;
  232. }
  233. throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
  234. }
  235. private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
  236. {
  237. if ((endpointConfiguration == EndpointConfiguration.GetDataBaseSoap))
  238. {
  239. return new System.ServiceModel.EndpointAddress("http://public.yunmuit.com/Areas/Api/WebService/GetDataBase.asmx");
  240. }
  241. if ((endpointConfiguration == EndpointConfiguration.GetDataBaseSoap12))
  242. {
  243. return new System.ServiceModel.EndpointAddress("http://public.yunmuit.com/Areas/Api/WebService/GetDataBase.asmx");
  244. }
  245. throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
  246. }
  247. public enum EndpointConfiguration
  248. {
  249. GetDataBaseSoap,
  250. GetDataBaseSoap12,
  251. }
  252. }