//------------------------------------------------------------------------------ // // Este código fue generado por una herramienta. // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si // se vuelve a generar el código. // //------------------------------------------------------------------------------ namespace wsTestAutentication { [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ServiceModel.ServiceContractAttribute(Namespace="http://digibox.com/", ConfigurationName="wsTestAutentication.wsAutenticacionSoap")] public interface wsAutenticacionSoap { [System.ServiceModel.OperationContractAttribute(Action="http://digibox.com/AutenticarBasico", ReplyAction="*")] System.Threading.Tasks.Task AutenticarBasicoAsync(wsTestAutentication.AutenticarBasicoRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://digibox.com/TokenCambioContraseña", ReplyAction="*")] System.Threading.Tasks.Task TokenCambioContraseñaAsync(wsTestAutentication.TokenCambioContraseñaRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://digibox.com/CambioContraseña", ReplyAction="*")] System.Threading.Tasks.Task CambioContraseñaAsync(wsTestAutentication.CambioContraseñaRequest request); } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class AutenticarBasicoRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="AutenticarBasico", Namespace="http://digibox.com/", Order=0)] public wsTestAutentication.AutenticarBasicoRequestBody Body; public AutenticarBasicoRequest() { } public AutenticarBasicoRequest(wsTestAutentication.AutenticarBasicoRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://digibox.com/")] public partial class AutenticarBasicoRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string usuario; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)] public string password; public AutenticarBasicoRequestBody() { } public AutenticarBasicoRequestBody(string usuario, string password) { this.usuario = usuario; this.password = password; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class AutenticarBasicoResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="AutenticarBasicoResponse", Namespace="http://digibox.com/", Order=0)] public wsTestAutentication.AutenticarBasicoResponseBody Body; public AutenticarBasicoResponse() { } public AutenticarBasicoResponse(wsTestAutentication.AutenticarBasicoResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://digibox.com/")] public partial class AutenticarBasicoResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string AutenticarBasicoResult; public AutenticarBasicoResponseBody() { } public AutenticarBasicoResponseBody(string AutenticarBasicoResult) { this.AutenticarBasicoResult = AutenticarBasicoResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class TokenCambioContraseñaRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="TokenCambioContraseña", Namespace="http://digibox.com/", Order=0)] public wsTestAutentication.TokenCambioContraseñaRequestBody Body; public TokenCambioContraseñaRequest() { } public TokenCambioContraseñaRequest(wsTestAutentication.TokenCambioContraseñaRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://digibox.com/")] public partial class TokenCambioContraseñaRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string apiKey; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)] public string email; public TokenCambioContraseñaRequestBody() { } public TokenCambioContraseñaRequestBody(string apiKey, string email) { this.apiKey = apiKey; this.email = email; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class TokenCambioContraseñaResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="TokenCambioContraseñaResponse", Namespace="http://digibox.com/", Order=0)] public wsTestAutentication.TokenCambioContraseñaResponseBody Body; public TokenCambioContraseñaResponse() { } public TokenCambioContraseñaResponse(wsTestAutentication.TokenCambioContraseñaResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://digibox.com/")] public partial class TokenCambioContraseñaResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string TokenCambioContraseñaResult; public TokenCambioContraseñaResponseBody() { } public TokenCambioContraseñaResponseBody(string TokenCambioContraseñaResult) { this.TokenCambioContraseñaResult = TokenCambioContraseñaResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class CambioContraseñaRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="CambioContraseña", Namespace="http://digibox.com/", Order=0)] public wsTestAutentication.CambioContraseñaRequestBody Body; public CambioContraseñaRequest() { } public CambioContraseñaRequest(wsTestAutentication.CambioContraseñaRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://digibox.com/")] public partial class CambioContraseñaRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string token; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)] public string newPassword; public CambioContraseñaRequestBody() { } public CambioContraseñaRequestBody(string token, string newPassword) { this.token = token; this.newPassword = newPassword; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class CambioContraseñaResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="CambioContraseñaResponse", Namespace="http://digibox.com/", Order=0)] public wsTestAutentication.CambioContraseñaResponseBody Body; public CambioContraseñaResponse() { } public CambioContraseñaResponse(wsTestAutentication.CambioContraseñaResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute()] public partial class CambioContraseñaResponseBody { public CambioContraseñaResponseBody() { } } [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] public interface wsAutenticacionSoapChannel : wsTestAutentication.wsAutenticacionSoap, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] public partial class wsAutenticacionSoapClient : System.ServiceModel.ClientBase, wsTestAutentication.wsAutenticacionSoap { /// /// Implemente este método parcial para configurar el punto de conexión de servicio. /// /// El punto de conexión para configurar /// Credenciales de cliente static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials); public wsAutenticacionSoapClient(EndpointConfiguration endpointConfiguration) : base(wsAutenticacionSoapClient.GetBindingForEndpoint(endpointConfiguration), wsAutenticacionSoapClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public wsAutenticacionSoapClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : base(wsAutenticacionSoapClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public wsAutenticacionSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(wsAutenticacionSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public wsAutenticacionSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task wsTestAutentication.wsAutenticacionSoap.AutenticarBasicoAsync(wsTestAutentication.AutenticarBasicoRequest request) { return base.Channel.AutenticarBasicoAsync(request); } public System.Threading.Tasks.Task AutenticarBasicoAsync(string usuario, string password) { wsTestAutentication.AutenticarBasicoRequest inValue = new wsTestAutentication.AutenticarBasicoRequest(); inValue.Body = new wsTestAutentication.AutenticarBasicoRequestBody(); inValue.Body.usuario = usuario; inValue.Body.password = password; return ((wsTestAutentication.wsAutenticacionSoap)(this)).AutenticarBasicoAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task wsTestAutentication.wsAutenticacionSoap.TokenCambioContraseñaAsync(wsTestAutentication.TokenCambioContraseñaRequest request) { return base.Channel.TokenCambioContraseñaAsync(request); } public System.Threading.Tasks.Task TokenCambioContraseñaAsync(string apiKey, string email) { wsTestAutentication.TokenCambioContraseñaRequest inValue = new wsTestAutentication.TokenCambioContraseñaRequest(); inValue.Body = new wsTestAutentication.TokenCambioContraseñaRequestBody(); inValue.Body.apiKey = apiKey; inValue.Body.email = email; return ((wsTestAutentication.wsAutenticacionSoap)(this)).TokenCambioContraseñaAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task wsTestAutentication.wsAutenticacionSoap.CambioContraseñaAsync(wsTestAutentication.CambioContraseñaRequest request) { return base.Channel.CambioContraseñaAsync(request); } public System.Threading.Tasks.Task CambioContraseñaAsync(string token, string newPassword) { wsTestAutentication.CambioContraseñaRequest inValue = new wsTestAutentication.CambioContraseñaRequest(); inValue.Body = new wsTestAutentication.CambioContraseñaRequestBody(); inValue.Body.token = token; inValue.Body.newPassword = newPassword; return ((wsTestAutentication.wsAutenticacionSoap)(this)).CambioContraseñaAsync(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.ServiceModel.ICommunicationObject)(this)).EndOpen)); } private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration) { if ((endpointConfiguration == EndpointConfiguration.wsAutenticacionSoap)) { 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; } if ((endpointConfiguration == EndpointConfiguration.wsAutenticacionSoap12)) { System.ServiceModel.Channels.CustomBinding result = new System.ServiceModel.Channels.CustomBinding(); System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement(); textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None); result.Elements.Add(textBindingElement); System.ServiceModel.Channels.HttpsTransportBindingElement httpsBindingElement = new System.ServiceModel.Channels.HttpsTransportBindingElement(); httpsBindingElement.AllowCookies = true; httpsBindingElement.MaxBufferSize = int.MaxValue; httpsBindingElement.MaxReceivedMessageSize = int.MaxValue; result.Elements.Add(httpsBindingElement); return result; } throw new System.InvalidOperationException(string.Format("No se pudo encontrar un punto de conexión con el nombre \"{0}\".", endpointConfiguration)); } private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration) { if ((endpointConfiguration == EndpointConfiguration.wsAutenticacionSoap)) { return new System.ServiceModel.EndpointAddress("https://testtimbrado.digibox.com.mx/Autenticacion/wsAutenticacion.asmx"); } if ((endpointConfiguration == EndpointConfiguration.wsAutenticacionSoap12)) { return new System.ServiceModel.EndpointAddress("https://testtimbrado.digibox.com.mx/Autenticacion/wsAutenticacion.asmx"); } throw new System.InvalidOperationException(string.Format("No se pudo encontrar un punto de conexión con el nombre \"{0}\".", endpointConfiguration)); } public enum EndpointConfiguration { wsAutenticacionSoap, wsAutenticacionSoap12, } } }