Reference.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // 此代码由工具生成。
  4. //
  5. // 对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
  6. // 代码重新生成。
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. namespace Qis
  10. {
  11. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  12. [System.ServiceModel.ServiceContractAttribute(Namespace="http://webservice.ambition.com/", ConfigurationName="Qis.IReceiveStopMachineFromMes")]
  13. public interface IReceiveStopMachineFromMes
  14. {
  15. // CODEGEN: 正在生成消息协定,因为命名空间 的元素名称 receiveStopMachineFromMes 未标记为 nillable
  16. [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
  17. Qis.receiveResponse receive(Qis.receive request);
  18. [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
  19. System.Threading.Tasks.Task<Qis.receiveResponse> receiveAsync(Qis.receive request);
  20. }
  21. [System.Diagnostics.DebuggerStepThroughAttribute()]
  22. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  23. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  24. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  25. public partial class receive
  26. {
  27. [System.ServiceModel.MessageBodyMemberAttribute(Name="receive", Namespace="http://webservice.ambition.com/", Order=0)]
  28. public Qis.receiveBody Body;
  29. public receive()
  30. {
  31. }
  32. public receive(Qis.receiveBody Body)
  33. {
  34. this.Body = Body;
  35. }
  36. }
  37. [System.Diagnostics.DebuggerStepThroughAttribute()]
  38. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  39. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  40. [System.Runtime.Serialization.DataContractAttribute(Namespace="")]
  41. public partial class receiveBody
  42. {
  43. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
  44. public string receiveStopMachineFromMes;
  45. public receiveBody()
  46. {
  47. }
  48. public receiveBody(string receiveStopMachineFromMes)
  49. {
  50. this.receiveStopMachineFromMes = receiveStopMachineFromMes;
  51. }
  52. }
  53. [System.Diagnostics.DebuggerStepThroughAttribute()]
  54. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  55. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  56. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  57. public partial class receiveResponse
  58. {
  59. [System.ServiceModel.MessageBodyMemberAttribute(Name="receiveResponse", Namespace="http://webservice.ambition.com/", Order=0)]
  60. public Qis.receiveResponseBody Body;
  61. public receiveResponse()
  62. {
  63. }
  64. public receiveResponse(Qis.receiveResponseBody Body)
  65. {
  66. this.Body = Body;
  67. }
  68. }
  69. [System.Diagnostics.DebuggerStepThroughAttribute()]
  70. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  71. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  72. [System.Runtime.Serialization.DataContractAttribute(Namespace="")]
  73. public partial class receiveResponseBody
  74. {
  75. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
  76. public string @return;
  77. public receiveResponseBody()
  78. {
  79. }
  80. public receiveResponseBody(string @return)
  81. {
  82. this.@return = @return;
  83. }
  84. }
  85. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  86. public interface IReceiveStopMachineFromMesChannel : Qis.IReceiveStopMachineFromMes, System.ServiceModel.IClientChannel
  87. {
  88. }
  89. [System.Diagnostics.DebuggerStepThroughAttribute()]
  90. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
  91. public partial class ReceiveStopMachineFromMesClient : System.ServiceModel.ClientBase<Qis.IReceiveStopMachineFromMes>, Qis.IReceiveStopMachineFromMes
  92. {
  93. /// <summary>
  94. /// 实现此分部方法,配置服务终结点。
  95. /// </summary>
  96. /// <param name="serviceEndpoint">要配置的终结点</param>
  97. /// <param name="clientCredentials">客户端凭据</param>
  98. static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
  99. public ReceiveStopMachineFromMesClient() :
  100. base(ReceiveStopMachineFromMesClient.GetDefaultBinding(), ReceiveStopMachineFromMesClient.GetDefaultEndpointAddress())
  101. {
  102. this.Endpoint.Name = EndpointConfiguration.ReceiveStopMachineFromMesPort.ToString();
  103. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  104. }
  105. public ReceiveStopMachineFromMesClient(EndpointConfiguration endpointConfiguration) :
  106. base(ReceiveStopMachineFromMesClient.GetBindingForEndpoint(endpointConfiguration), ReceiveStopMachineFromMesClient.GetEndpointAddress(endpointConfiguration))
  107. {
  108. this.Endpoint.Name = endpointConfiguration.ToString();
  109. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  110. }
  111. public ReceiveStopMachineFromMesClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
  112. base(ReceiveStopMachineFromMesClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
  113. {
  114. this.Endpoint.Name = endpointConfiguration.ToString();
  115. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  116. }
  117. public ReceiveStopMachineFromMesClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
  118. base(ReceiveStopMachineFromMesClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
  119. {
  120. this.Endpoint.Name = endpointConfiguration.ToString();
  121. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  122. }
  123. public ReceiveStopMachineFromMesClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  124. base(binding, remoteAddress)
  125. {
  126. }
  127. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  128. Qis.receiveResponse Qis.IReceiveStopMachineFromMes.receive(Qis.receive request)
  129. {
  130. return base.Channel.receive(request);
  131. }
  132. public string receive(string receiveStopMachineFromMes)
  133. {
  134. Qis.receive inValue = new Qis.receive();
  135. inValue.Body = new Qis.receiveBody();
  136. inValue.Body.receiveStopMachineFromMes = receiveStopMachineFromMes;
  137. Qis.receiveResponse retVal = ((Qis.IReceiveStopMachineFromMes)(this)).receive(inValue);
  138. return retVal.Body.@return;
  139. }
  140. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  141. System.Threading.Tasks.Task<Qis.receiveResponse> Qis.IReceiveStopMachineFromMes.receiveAsync(Qis.receive request)
  142. {
  143. return base.Channel.receiveAsync(request);
  144. }
  145. public System.Threading.Tasks.Task<Qis.receiveResponse> receiveAsync(string receiveStopMachineFromMes)
  146. {
  147. Qis.receive inValue = new Qis.receive();
  148. inValue.Body = new Qis.receiveBody();
  149. inValue.Body.receiveStopMachineFromMes = receiveStopMachineFromMes;
  150. return ((Qis.IReceiveStopMachineFromMes)(this)).receiveAsync(inValue);
  151. }
  152. public virtual System.Threading.Tasks.Task OpenAsync()
  153. {
  154. return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
  155. }
  156. public virtual System.Threading.Tasks.Task CloseAsync()
  157. {
  158. return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
  159. }
  160. private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
  161. {
  162. if ((endpointConfiguration == EndpointConfiguration.ReceiveStopMachineFromMesPort))
  163. {
  164. System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
  165. result.MaxBufferSize = int.MaxValue;
  166. result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
  167. result.MaxReceivedMessageSize = int.MaxValue;
  168. result.AllowCookies = true;
  169. result.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport;
  170. return result;
  171. }
  172. throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
  173. }
  174. private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
  175. {
  176. if ((endpointConfiguration == EndpointConfiguration.ReceiveStopMachineFromMesPort))
  177. {
  178. return new System.ServiceModel.EndpointAddress("https://qis-ccm.ofilm.com:9011/amb/webservice/iReceiveStopMachineFromMes");
  179. }
  180. throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
  181. }
  182. private static System.ServiceModel.Channels.Binding GetDefaultBinding()
  183. {
  184. return ReceiveStopMachineFromMesClient.GetBindingForEndpoint(EndpointConfiguration.ReceiveStopMachineFromMesPort);
  185. }
  186. private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
  187. {
  188. return ReceiveStopMachineFromMesClient.GetEndpointAddress(EndpointConfiguration.ReceiveStopMachineFromMesPort);
  189. }
  190. public enum EndpointConfiguration
  191. {
  192. ReceiveStopMachineFromMesPort,
  193. }
  194. }
  195. }