123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // 此代码由工具生成。
- //
- // 对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
- // 代码重新生成。
- // </auto-generated>
- //------------------------------------------------------------------------------
- namespace Qis
- {
-
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
- [System.ServiceModel.ServiceContractAttribute(Namespace="http://webservice.ambition.com/", ConfigurationName="Qis.IReceiveStopMachineFromMes")]
- public interface IReceiveStopMachineFromMes
- {
-
- // CODEGEN: 正在生成消息协定,因为命名空间 的元素名称 receiveStopMachineFromMes 未标记为 nillable
- [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
- Qis.receiveResponse receive(Qis.receive request);
-
- [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
- System.Threading.Tasks.Task<Qis.receiveResponse> receiveAsync(Qis.receive request);
- }
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
- public partial class receive
- {
-
- [System.ServiceModel.MessageBodyMemberAttribute(Name="receive", Namespace="http://webservice.ambition.com/", Order=0)]
- public Qis.receiveBody Body;
-
- public receive()
- {
- }
-
- public receive(Qis.receiveBody Body)
- {
- this.Body = Body;
- }
- }
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- [System.Runtime.Serialization.DataContractAttribute(Namespace="")]
- public partial class receiveBody
- {
-
- [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
- public string receiveStopMachineFromMes;
-
- public receiveBody()
- {
- }
-
- public receiveBody(string receiveStopMachineFromMes)
- {
- this.receiveStopMachineFromMes = receiveStopMachineFromMes;
- }
- }
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
- public partial class receiveResponse
- {
-
- [System.ServiceModel.MessageBodyMemberAttribute(Name="receiveResponse", Namespace="http://webservice.ambition.com/", Order=0)]
- public Qis.receiveResponseBody Body;
-
- public receiveResponse()
- {
- }
-
- public receiveResponse(Qis.receiveResponseBody Body)
- {
- this.Body = Body;
- }
- }
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- [System.Runtime.Serialization.DataContractAttribute(Namespace="")]
- public partial class receiveResponseBody
- {
-
- [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
- public string @return;
-
- public receiveResponseBody()
- {
- }
-
- public receiveResponseBody(string @return)
- {
- this.@return = @return;
- }
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
- public interface IReceiveStopMachineFromMesChannel : Qis.IReceiveStopMachineFromMes, System.ServiceModel.IClientChannel
- {
- }
-
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.2")]
- public partial class ReceiveStopMachineFromMesClient : System.ServiceModel.ClientBase<Qis.IReceiveStopMachineFromMes>, Qis.IReceiveStopMachineFromMes
- {
-
- /// <summary>
- /// 实现此分部方法,配置服务终结点。
- /// </summary>
- /// <param name="serviceEndpoint">要配置的终结点</param>
- /// <param name="clientCredentials">客户端凭据</param>
- static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
-
- public ReceiveStopMachineFromMesClient() :
- base(ReceiveStopMachineFromMesClient.GetDefaultBinding(), ReceiveStopMachineFromMesClient.GetDefaultEndpointAddress())
- {
- this.Endpoint.Name = EndpointConfiguration.ReceiveStopMachineFromMesPort.ToString();
- ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
- }
-
- public ReceiveStopMachineFromMesClient(EndpointConfiguration endpointConfiguration) :
- base(ReceiveStopMachineFromMesClient.GetBindingForEndpoint(endpointConfiguration), ReceiveStopMachineFromMesClient.GetEndpointAddress(endpointConfiguration))
- {
- this.Endpoint.Name = endpointConfiguration.ToString();
- ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
- }
-
- public ReceiveStopMachineFromMesClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
- base(ReceiveStopMachineFromMesClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
- {
- this.Endpoint.Name = endpointConfiguration.ToString();
- ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
- }
-
- public ReceiveStopMachineFromMesClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
- base(ReceiveStopMachineFromMesClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
- {
- this.Endpoint.Name = endpointConfiguration.ToString();
- ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
- }
-
- public ReceiveStopMachineFromMesClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
- base(binding, remoteAddress)
- {
- }
-
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- Qis.receiveResponse Qis.IReceiveStopMachineFromMes.receive(Qis.receive request)
- {
- return base.Channel.receive(request);
- }
-
- public string receive(string receiveStopMachineFromMes)
- {
- Qis.receive inValue = new Qis.receive();
- inValue.Body = new Qis.receiveBody();
- inValue.Body.receiveStopMachineFromMes = receiveStopMachineFromMes;
- Qis.receiveResponse retVal = ((Qis.IReceiveStopMachineFromMes)(this)).receive(inValue);
- return retVal.Body.@return;
- }
-
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- System.Threading.Tasks.Task<Qis.receiveResponse> Qis.IReceiveStopMachineFromMes.receiveAsync(Qis.receive request)
- {
- return base.Channel.receiveAsync(request);
- }
-
- public System.Threading.Tasks.Task<Qis.receiveResponse> receiveAsync(string receiveStopMachineFromMes)
- {
- Qis.receive inValue = new Qis.receive();
- inValue.Body = new Qis.receiveBody();
- inValue.Body.receiveStopMachineFromMes = receiveStopMachineFromMes;
- return ((Qis.IReceiveStopMachineFromMes)(this)).receiveAsync(inValue);
- }
-
- public virtual System.Threading.Tasks.Task OpenAsync()
- {
- return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
- }
-
- public virtual System.Threading.Tasks.Task CloseAsync()
- {
- return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
- }
-
- private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
- {
- if ((endpointConfiguration == EndpointConfiguration.ReceiveStopMachineFromMesPort))
- {
- System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
- result.MaxBufferSize = int.MaxValue;
- result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
- result.MaxReceivedMessageSize = int.MaxValue;
- result.AllowCookies = true;
- result.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport;
- return result;
- }
- throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
- }
-
- private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
- {
- if ((endpointConfiguration == EndpointConfiguration.ReceiveStopMachineFromMesPort))
- {
- return new System.ServiceModel.EndpointAddress("https://qis-ccm.ofilm.com:9011/amb/webservice/iReceiveStopMachineFromMes");
- }
- throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
- }
-
- private static System.ServiceModel.Channels.Binding GetDefaultBinding()
- {
- return ReceiveStopMachineFromMesClient.GetBindingForEndpoint(EndpointConfiguration.ReceiveStopMachineFromMesPort);
- }
-
- private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
- {
- return ReceiveStopMachineFromMesClient.GetEndpointAddress(EndpointConfiguration.ReceiveStopMachineFromMesPort);
- }
-
- public enum EndpointConfiguration
- {
-
- ReceiveStopMachineFromMesPort,
- }
- }
- }
|