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.

220 lines
9.6 KiB

3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // 此代码由工具生成。
  4. //
  5. // 对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
  6. // 代码重新生成。
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. namespace ServiceReferenceYinHai
  10. {
  11. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "8.0.0")]
  12. [System.ServiceModel.ServiceContractAttribute(Namespace = "http://esb.webservice", ConfigurationName = "ServiceReferenceYinHai.WebService")]
  13. public interface WebService
  14. {
  15. [System.ServiceModel.OperationContractAttribute(Action = "", ReplyAction = "*")]
  16. [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)]
  17. System.Threading.Tasks.Task<ServiceReferenceYinHai.callBussinessResponse> callBussinessAsync(ServiceReferenceYinHai.callBussiness request);
  18. }
  19. /// <remarks/>
  20. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "8.0.0")]
  21. [System.Diagnostics.DebuggerStepThroughAttribute()]
  22. [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://esb.webservice")]
  23. public partial class soapResponse
  24. {
  25. private string msgField;
  26. private string status_codeField;
  27. /// <remarks/>
  28. [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
  29. public string msg
  30. {
  31. get
  32. {
  33. return this.msgField;
  34. }
  35. set
  36. {
  37. this.msgField = value;
  38. }
  39. }
  40. /// <remarks/>
  41. [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 1)]
  42. public string status_code
  43. {
  44. get
  45. {
  46. return this.status_codeField;
  47. }
  48. set
  49. {
  50. this.status_codeField = value;
  51. }
  52. }
  53. }
  54. [System.Diagnostics.DebuggerStepThroughAttribute()]
  55. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "8.0.0")]
  56. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  57. [System.ServiceModel.MessageContractAttribute(WrapperName = "callBussiness", WrapperNamespace = "http://esb.webservice", IsWrapped = true)]
  58. public partial class callBussiness
  59. {
  60. [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://esb.webservice", Order = 0)]
  61. [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
  62. public string message;
  63. public callBussiness()
  64. {
  65. }
  66. public callBussiness(string message)
  67. {
  68. this.message = message;
  69. }
  70. }
  71. [System.Diagnostics.DebuggerStepThroughAttribute()]
  72. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "8.0.0")]
  73. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  74. [System.ServiceModel.MessageContractAttribute(WrapperName = "callBussinessResponse", WrapperNamespace = "http://esb.webservice", IsWrapped = true)]
  75. public partial class callBussinessResponse
  76. {
  77. [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://esb.webservice", Order = 0)]
  78. [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
  79. public ServiceReferenceYinHai.soapResponse data;
  80. public callBussinessResponse()
  81. {
  82. }
  83. public callBussinessResponse(ServiceReferenceYinHai.soapResponse data)
  84. {
  85. this.data = data;
  86. }
  87. }
  88. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "8.0.0")]
  89. public interface WebServiceChannel : ServiceReferenceYinHai.WebService, System.ServiceModel.IClientChannel
  90. {
  91. }
  92. [System.Diagnostics.DebuggerStepThroughAttribute()]
  93. [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "8.0.0")]
  94. public partial class WebServiceClient : System.ServiceModel.ClientBase<ServiceReferenceYinHai.WebService>, ServiceReferenceYinHai.WebService
  95. {
  96. /// <summary>
  97. /// 实现此分部方法,配置服务终结点。
  98. /// </summary>
  99. /// <param name="serviceEndpoint">要配置的终结点</param>
  100. /// <param name="clientCredentials">客户端凭据</param>
  101. static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
  102. public WebServiceClient() :
  103. base(WebServiceClient.GetDefaultBinding(), WebServiceClient.GetDefaultEndpointAddress())
  104. {
  105. this.Endpoint.Name = EndpointConfiguration.WebServicePort.ToString();
  106. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  107. }
  108. public WebServiceClient(EndpointConfiguration endpointConfiguration) :
  109. base(WebServiceClient.GetBindingForEndpoint(endpointConfiguration), WebServiceClient.GetEndpointAddress(endpointConfiguration))
  110. {
  111. this.Endpoint.Name = endpointConfiguration.ToString();
  112. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  113. }
  114. public WebServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
  115. base(WebServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
  116. {
  117. this.Endpoint.Name = endpointConfiguration.ToString();
  118. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  119. }
  120. public WebServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
  121. base(WebServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
  122. {
  123. this.Endpoint.Name = endpointConfiguration.ToString();
  124. ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
  125. }
  126. public WebServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  127. base(binding, remoteAddress)
  128. {
  129. }
  130. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  131. System.Threading.Tasks.Task<ServiceReferenceYinHai.callBussinessResponse> ServiceReferenceYinHai.WebService.callBussinessAsync(ServiceReferenceYinHai.callBussiness request)
  132. {
  133. return base.Channel.callBussinessAsync(request);
  134. }
  135. public System.Threading.Tasks.Task<ServiceReferenceYinHai.callBussinessResponse> callBussinessAsync(string message)
  136. {
  137. ServiceReferenceYinHai.callBussiness inValue = new ServiceReferenceYinHai.callBussiness();
  138. inValue.message = message;
  139. return ((ServiceReferenceYinHai.WebService)(this)).callBussinessAsync(inValue);
  140. }
  141. public virtual System.Threading.Tasks.Task OpenAsync()
  142. {
  143. return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
  144. }
  145. #if !NET6_0_OR_GREATER
  146. public virtual System.Threading.Tasks.Task CloseAsync()
  147. {
  148. return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
  149. }
  150. #endif
  151. private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
  152. {
  153. if ((endpointConfiguration == EndpointConfiguration.WebServicePort))
  154. {
  155. System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
  156. result.MaxBufferSize = int.MaxValue;
  157. result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
  158. result.MaxReceivedMessageSize = int.MaxValue;
  159. result.AllowCookies = true;
  160. return result;
  161. }
  162. throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
  163. }
  164. private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
  165. {
  166. if ((endpointConfiguration == EndpointConfiguration.WebServicePort))
  167. {
  168. return new System.ServiceModel.EndpointAddress("http://localhost:8080/jcdsbws/proxy/lis_service");
  169. }
  170. throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
  171. }
  172. private static System.ServiceModel.Channels.Binding GetDefaultBinding()
  173. {
  174. return WebServiceClient.GetBindingForEndpoint(EndpointConfiguration.WebServicePort);
  175. }
  176. private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
  177. {
  178. return WebServiceClient.GetEndpointAddress(EndpointConfiguration.WebServicePort);
  179. }
  180. public enum EndpointConfiguration
  181. {
  182. WebServicePort,
  183. }
  184. }
  185. }