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.

193 lines
9.8 KiB

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