You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

214 lines
11 KiB

2 years ago
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // 此代码由工具生成。
  4. //
  5. // 对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
  6. // 代码重新生成。
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. namespace ServiceReferenceHzcyHis
  10. {
  11. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
  12. [System.ServiceModel.ServiceContractAttribute(Namespace="http://com.bsoft.ws", ConfigurationName="ServiceReferenceHzcyHis.bstjPortType")]
  13. public interface bstjPortType
  14. {
  15. // CODEGEN: 正在生成消息协定,因为消息 invokeRequest 的包装器命名空间(http://webservice.rim.bsoft.com)与默认值(http://com.bsoft.ws)不匹配
  16. [System.ServiceModel.OperationContractAttribute(Action="urn:invoke", ReplyAction="urn:invokeResponse")]
  17. [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
  18. ServiceReferenceHzcyHis.invokeResponse invoke(ServiceReferenceHzcyHis.invokeRequest request);
  19. [System.ServiceModel.OperationContractAttribute(Action="urn:invoke", ReplyAction="urn:invokeResponse")]
  20. System.Threading.Tasks.Task<ServiceReferenceHzcyHis.invokeResponse> invokeAsync(ServiceReferenceHzcyHis.invokeRequest request);
  21. }
  22. [System.Diagnostics.DebuggerStepThroughAttribute()]
  23. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
  24. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  25. [System.ServiceModel.MessageContractAttribute(WrapperName="invoke", WrapperNamespace="http://webservice.rim.bsoft.com", IsWrapped=true)]
  26. public partial class invokeRequest
  27. {
  28. [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://webservice.rim.bsoft.com", Order=0)]
  29. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  30. public string args0;
  31. [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://webservice.rim.bsoft.com", Order=1)]
  32. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  33. public string args1;
  34. [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://webservice.rim.bsoft.com", Order=2)]
  35. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  36. public string args2;
  37. [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://webservice.rim.bsoft.com", Order=3)]
  38. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  39. public string args3;
  40. public invokeRequest()
  41. {
  42. }
  43. public invokeRequest(string args0, string args1, string args2, string args3)
  44. {
  45. this.args0 = args0;
  46. this.args1 = args1;
  47. this.args2 = args2;
  48. this.args3 = args3;
  49. }
  50. }
  51. [System.Diagnostics.DebuggerStepThroughAttribute()]
  52. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
  53. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  54. [System.ServiceModel.MessageContractAttribute(WrapperName="invokeResponse", WrapperNamespace="http://webservice.rim.bsoft.com", IsWrapped=true)]
  55. public partial class invokeResponse
  56. {
  57. [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://webservice.rim.bsoft.com", Order=0)]
  58. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  59. public string @return;
  60. public invokeResponse()
  61. {
  62. }
  63. public invokeResponse(string @return)
  64. {
  65. this.@return = @return;
  66. }
  67. }
  68. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
  69. public interface bstjPortTypeChannel : ServiceReferenceHzcyHis.bstjPortType, System.ServiceModel.IClientChannel
  70. {
  71. }
  72. [System.Diagnostics.DebuggerStepThroughAttribute()]
  73. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
  74. public partial class bstjPortTypeClient : System.ServiceModel.ClientBase<ServiceReferenceHzcyHis.bstjPortType>, ServiceReferenceHzcyHis.bstjPortType
  75. {
  76. /// <summary>
  77. /// 实现此分部方法,配置服务终结点。
  78. /// </summary>
  79. /// <param name="serviceEndpoint">要配置的终结点</param>
  80. /// <param name="clientCredentials">客户端凭据</param>
  81. static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
  82. public bstjPortTypeClient(EndpointConfiguration endpointConfiguration) :
  83. base(bstjPortTypeClient.GetBindingForEndpoint(endpointConfiguration), bstjPortTypeClient.GetEndpointAddress(endpointConfiguration))
  84. {
  85. this.Endpoint.Name = endpointConfiguration.ToString();
  86. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  87. }
  88. public bstjPortTypeClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
  89. base(bstjPortTypeClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
  90. {
  91. this.Endpoint.Name = endpointConfiguration.ToString();
  92. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  93. }
  94. public bstjPortTypeClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
  95. base(bstjPortTypeClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
  96. {
  97. this.Endpoint.Name = endpointConfiguration.ToString();
  98. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  99. }
  100. public bstjPortTypeClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  101. base(binding, remoteAddress)
  102. {
  103. }
  104. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  105. ServiceReferenceHzcyHis.invokeResponse ServiceReferenceHzcyHis.bstjPortType.invoke(ServiceReferenceHzcyHis.invokeRequest request)
  106. {
  107. return base.Channel.invoke(request);
  108. }
  109. public string invoke(string args0, string args1, string args2, string args3)
  110. {
  111. ServiceReferenceHzcyHis.invokeRequest inValue = new ServiceReferenceHzcyHis.invokeRequest();
  112. inValue.args0 = args0;
  113. inValue.args1 = args1;
  114. inValue.args2 = args2;
  115. inValue.args3 = args3;
  116. ServiceReferenceHzcyHis.invokeResponse retVal = ((ServiceReferenceHzcyHis.bstjPortType)(this)).invoke(inValue);
  117. return retVal.@return;
  118. }
  119. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  120. System.Threading.Tasks.Task<ServiceReferenceHzcyHis.invokeResponse> ServiceReferenceHzcyHis.bstjPortType.invokeAsync(ServiceReferenceHzcyHis.invokeRequest request)
  121. {
  122. return base.Channel.invokeAsync(request);
  123. }
  124. public System.Threading.Tasks.Task<ServiceReferenceHzcyHis.invokeResponse> invokeAsync(string args0, string args1, string args2, string args3)
  125. {
  126. ServiceReferenceHzcyHis.invokeRequest inValue = new ServiceReferenceHzcyHis.invokeRequest();
  127. inValue.args0 = args0;
  128. inValue.args1 = args1;
  129. inValue.args2 = args2;
  130. inValue.args3 = args3;
  131. return ((ServiceReferenceHzcyHis.bstjPortType)(this)).invokeAsync(inValue);
  132. }
  133. public virtual System.Threading.Tasks.Task OpenAsync()
  134. {
  135. return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
  136. }
  137. private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
  138. {
  139. if ((endpointConfiguration == EndpointConfiguration.bstjHttpSoap11Endpoint))
  140. {
  141. System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
  142. result.MaxBufferSize = int.MaxValue;
  143. result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
  144. result.MaxReceivedMessageSize = int.MaxValue;
  145. result.AllowCookies = true;
  146. return result;
  147. }
  148. if ((endpointConfiguration == EndpointConfiguration.bstjHttpSoap12Endpoint))
  149. {
  150. System.ServiceModel.Channels.CustomBinding result = new System.ServiceModel.Channels.CustomBinding();
  151. System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement();
  152. textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None);
  153. result.Elements.Add(textBindingElement);
  154. System.ServiceModel.Channels.HttpTransportBindingElement httpBindingElement = new System.ServiceModel.Channels.HttpTransportBindingElement();
  155. httpBindingElement.AllowCookies = true;
  156. httpBindingElement.MaxBufferSize = int.MaxValue;
  157. httpBindingElement.MaxReceivedMessageSize = int.MaxValue;
  158. result.Elements.Add(httpBindingElement);
  159. return result;
  160. }
  161. throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
  162. }
  163. private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
  164. {
  165. if ((endpointConfiguration == EndpointConfiguration.bstjHttpSoap11Endpoint))
  166. {
  167. return new System.ServiceModel.EndpointAddress("http://10.1.12.140:8082/gemse-tj/services/bstj.bstjHttpSoap11Endpoint/");
  168. }
  169. if ((endpointConfiguration == EndpointConfiguration.bstjHttpSoap12Endpoint))
  170. {
  171. return new System.ServiceModel.EndpointAddress("http://10.1.12.140:8082/gemse-tj/services/bstj.bstjHttpSoap12Endpoint/");
  172. }
  173. throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
  174. }
  175. public enum EndpointConfiguration
  176. {
  177. bstjHttpSoap11Endpoint,
  178. bstjHttpSoap12Endpoint,
  179. }
  180. }
  181. }