Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------------------------------------
- // <generado automáticamente>
- // 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.
- // </generado automáticamente>
- //------------------------------------------------------------------------------
- namespace Test
- {
- [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.1")]
- [System.ServiceModel.ServiceContractAttribute(Namespace= "http://DefaultNamespace", ConfigurationName="Maullin.CrSeed")]
- public interface CrSeed
- {
- [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
- [System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true, Use=System.ServiceModel.OperationFormatUse.Encoded)]
- [return: System.ServiceModel.MessageParameterAttribute(Name="getStateReturn")]
- System.Threading.Tasks.Task<string> getStateAsync();
- [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
- [System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true, Use=System.ServiceModel.OperationFormatUse.Encoded)]
- [return: System.ServiceModel.MessageParameterAttribute(Name="getSeedReturn")]
- System.Threading.Tasks.Task<string> getSeedAsync();
- [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
- [System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true, Use=System.ServiceModel.OperationFormatUse.Encoded)]
- [return: System.ServiceModel.MessageParameterAttribute(Name="getVersionMayorReturn")]
- System.Threading.Tasks.Task<string> getVersionMayorAsync();
- [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
- [System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true, Use=System.ServiceModel.OperationFormatUse.Encoded)]
- [return: System.ServiceModel.MessageParameterAttribute(Name="getVersionMenorReturn")]
- System.Threading.Tasks.Task<string> getVersionMenorAsync();
- [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
- [System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true, Use=System.ServiceModel.OperationFormatUse.Encoded)]
- [return: System.ServiceModel.MessageParameterAttribute(Name="getVersionPatchReturn")]
- System.Threading.Tasks.Task<string> getVersionPatchAsync();
- }
- [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.1")]
- public interface CrSeedChannel : Maullin.CrSeed, System.ServiceModel.IClientChannel
- {
- }
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.1")]
- public partial class CrSeedClient : System.ServiceModel.ClientBase<Maullin.CrSeed>, Maullin.CrSeed
- {
- /// <summary>
- /// Implemente este método parcial para configurar el punto de conexión de servicio.
- /// </summary>
- /// <param name="serviceEndpoint">El punto de conexión para configurar</param>
- /// <param name="clientCredentials">Credenciales de cliente</param>
- static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
- public CrSeedClient() :
- base(CrSeedClient.GetDefaultBinding(), CrSeedClient.GetDefaultEndpointAddress())
- {
- this.Endpoint.Name = EndpointConfiguration.CrSeed.ToString();
- ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
- }
- public CrSeedClient(EndpointConfiguration endpointConfiguration) :
- base(CrSeedClient.GetBindingForEndpoint(endpointConfiguration), CrSeedClient.GetEndpointAddress(endpointConfiguration))
- {
- this.Endpoint.Name = endpointConfiguration.ToString();
- ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
- }
- public CrSeedClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
- base(CrSeedClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
- {
- this.Endpoint.Name = endpointConfiguration.ToString();
- ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
- }
- public CrSeedClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
- base(CrSeedClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
- {
- this.Endpoint.Name = endpointConfiguration.ToString();
- ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
- }
- public CrSeedClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
- base(binding, remoteAddress)
- {
- }
- public System.Threading.Tasks.Task<string> getStateAsync()
- {
- return base.Channel.getStateAsync();
- }
- public System.Threading.Tasks.Task<string> getSeedAsync()
- {
- return base.Channel.getSeedAsync();
- }
- public System.Threading.Tasks.Task<string> getVersionMayorAsync()
- {
- return base.Channel.getVersionMayorAsync();
- }
- public System.Threading.Tasks.Task<string> getVersionMenorAsync()
- {
- return base.Channel.getVersionMenorAsync();
- }
- public System.Threading.Tasks.Task<string> getVersionPatchAsync()
- {
- return base.Channel.getVersionPatchAsync();
- }
- 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.CrSeed))
- {
- 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("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.CrSeed))
- {
- return new System.ServiceModel.EndpointAddress("https://maullin.sii.cl/DTEWS/CrSeed.jws");
- }
- throw new System.InvalidOperationException(string.Format("No se pudo encontrar un punto de conexión con el nombre \"{0}\".", endpointConfiguration));
- }
- private static System.ServiceModel.Channels.Binding GetDefaultBinding()
- {
- return CrSeedClient.GetBindingForEndpoint(EndpointConfiguration.CrSeed);
- }
- private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
- {
- return CrSeedClient.GetEndpointAddress(EndpointConfiguration.CrSeed);
- }
- public enum EndpointConfiguration
- {
- CrSeed,
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement