//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//
//     对此文件的更改可能导致不正确的行为，并在以下条件下丢失:
//     代码重新生成。
// </auto-generated>
//------------------------------------------------------------------------------

namespace ServiceReference1
{
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServiceReference1.IRGDWCSService")]
    public interface IRGDWCSService
    {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/getWhEquipStatus", ReplyAction="http://tempuri.org/IRGDWCSService/getWhEquipStatusResponse")]
        System.Threading.Tasks.Task<string> getWhEquipStatusAsync(string xml);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/packTask", ReplyAction="http://tempuri.org/IRGDWCSService/packTaskResponse")]
        System.Threading.Tasks.Task<string> packTaskAsync(string xml);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/startArrangeTask", ReplyAction="http://tempuri.org/IRGDWCSService/startArrangeTaskResponse")]
        System.Threading.Tasks.Task<string> startArrangeTaskAsync(string xml);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/startInTask", ReplyAction="http://tempuri.org/IRGDWCSService/startInTaskResponse")]
        System.Threading.Tasks.Task<string> startInTaskAsync(string xml);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/startInventoryTask", ReplyAction="http://tempuri.org/IRGDWCSService/startInventoryTaskResponse")]
        System.Threading.Tasks.Task<string> startInventoryTaskAsync(string xml);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/startBoxInvTask", ReplyAction="http://tempuri.org/IRGDWCSService/startBoxInvTaskResponse")]
        System.Threading.Tasks.Task<string> startBoxInvTaskAsync(string xml);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/startOutTask", ReplyAction="http://tempuri.org/IRGDWCSService/startOutTaskResponse")]
        System.Threading.Tasks.Task<string> startOutTaskAsync(string xml);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/stopTask", ReplyAction="http://tempuri.org/IRGDWCSService/stopTaskResponse")]
        System.Threading.Tasks.Task<string> stopTaskAsync(string xml);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/RFIDReadyToRead", ReplyAction="http://tempuri.org/IRGDWCSService/RFIDReadyToReadResponse")]
        System.Threading.Tasks.Task<string> RFIDReadyToReadAsync(string station_code);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/RFIDRequestWithReturn", ReplyAction="http://tempuri.org/IRGDWCSService/RFIDRequestWithReturnResponse")]
        System.Threading.Tasks.Task<string> RFIDRequestWithReturnAsync(string RFIDRequest);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/ReadyToHandleVision", ReplyAction="http://tempuri.org/IRGDWCSService/ReadyToHandleVisionResponse")]
        System.Threading.Tasks.Task<int> ReadyToHandleVisionAsync(string station_code);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/VISIONRequestWithReturn", ReplyAction="http://tempuri.org/IRGDWCSService/VISIONRequestWithReturnResponse")]
        System.Threading.Tasks.Task<string> VISIONRequestWithReturnAsync(string VISIONRequest);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRGDWCSService/Update_IO_Vision", ReplyAction="http://tempuri.org/IRGDWCSService/Update_IO_VisionResponse")]
        System.Threading.Tasks.Task<int> Update_IO_VisionAsync(string device_code, int read_flag);
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    public interface IRGDWCSServiceChannel : ServiceReference1.IRGDWCSService, System.ServiceModel.IClientChannel
    {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    public partial class RGDWCSServiceClient : System.ServiceModel.ClientBase<ServiceReference1.IRGDWCSService>, ServiceReference1.IRGDWCSService
    {
        
        /// <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 RGDWCSServiceClient() : 
                base(RGDWCSServiceClient.GetDefaultBinding(), RGDWCSServiceClient.GetDefaultEndpointAddress())
        {
            this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IRGDWCSService.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public RGDWCSServiceClient(EndpointConfiguration endpointConfiguration) : 
                base(RGDWCSServiceClient.GetBindingForEndpoint(endpointConfiguration), RGDWCSServiceClient.GetEndpointAddress(endpointConfiguration))
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public RGDWCSServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : 
                base(RGDWCSServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public RGDWCSServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(RGDWCSServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public RGDWCSServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress)
        {
        }
        
        public System.Threading.Tasks.Task<string> getWhEquipStatusAsync(string xml)
        {
            return base.Channel.getWhEquipStatusAsync(xml);
        }
        
        public System.Threading.Tasks.Task<string> packTaskAsync(string xml)
        {
            return base.Channel.packTaskAsync(xml);
        }
        
        public System.Threading.Tasks.Task<string> startArrangeTaskAsync(string xml)
        {
            return base.Channel.startArrangeTaskAsync(xml);
        }
        
        public System.Threading.Tasks.Task<string> startInTaskAsync(string xml)
        {
            return base.Channel.startInTaskAsync(xml);
        }
        
        public System.Threading.Tasks.Task<string> startInventoryTaskAsync(string xml)
        {
            return base.Channel.startInventoryTaskAsync(xml);
        }
        
        public System.Threading.Tasks.Task<string> startBoxInvTaskAsync(string xml)
        {
            return base.Channel.startBoxInvTaskAsync(xml);
        }
        
        public System.Threading.Tasks.Task<string> startOutTaskAsync(string xml)
        {
            return base.Channel.startOutTaskAsync(xml);
        }
        
        public System.Threading.Tasks.Task<string> stopTaskAsync(string xml)
        {
            return base.Channel.stopTaskAsync(xml);
        }
        
        public System.Threading.Tasks.Task<string> RFIDReadyToReadAsync(string station_code)
        {
            return base.Channel.RFIDReadyToReadAsync(station_code);
        }
        
        public System.Threading.Tasks.Task<string> RFIDRequestWithReturnAsync(string RFIDRequest)
        {
            return base.Channel.RFIDRequestWithReturnAsync(RFIDRequest);
        }
        
        public System.Threading.Tasks.Task<int> ReadyToHandleVisionAsync(string station_code)
        {
            return base.Channel.ReadyToHandleVisionAsync(station_code);
        }
        
        public System.Threading.Tasks.Task<string> VISIONRequestWithReturnAsync(string VISIONRequest)
        {
            return base.Channel.VISIONRequestWithReturnAsync(VISIONRequest);
        }
        
        public System.Threading.Tasks.Task<int> Update_IO_VisionAsync(string device_code, int read_flag)
        {
            return base.Channel.Update_IO_VisionAsync(device_code, read_flag);
        }
        
        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));
        }
        
        private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
        {
            if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding_IRGDWCSService))
            {
                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;
                return result;
            }
            throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
        }
        
        private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
        {
            if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding_IRGDWCSService))
            {
                return new System.ServiceModel.EndpointAddress("http://24.50.92.184:17021/RGDWCSService/");
            }
            throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
        }
        
        private static System.ServiceModel.Channels.Binding GetDefaultBinding()
        {
            return RGDWCSServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IRGDWCSService);
        }
        
        private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
        {
            return RGDWCSServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IRGDWCSService);
        }
        
        public enum EndpointConfiguration
        {
            
            BasicHttpBinding_IRGDWCSService,
        }
    }
}
