public InfoDocumentoClient() : base(InfoDocumentoClient.GetDefaultBinding(), InfoDocumentoClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.InfoDocumento.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public async Task <DocumentInformationResponse> GetDocument(DocumentInformationRequest request) { var accountInfo = _auth.GenerateSecurityInformation(); request.AddAccountInfo(accountInfo); InfoDocumentoClient client = new InfoDocumentoClient(); var result = await client.infoDocumentoXMLAsync(request.BuildRequest()); return(_deserializer.Deserialize <DocumentInformationResponse>(result)); }
public InfoDocumentoClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(InfoDocumentoClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public InfoDocumentoClient(EndpointConfiguration endpointConfiguration) : base(InfoDocumentoClient.GetBindingForEndpoint(endpointConfiguration), InfoDocumentoClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(InfoDocumentoClient.GetEndpointAddress(EndpointConfiguration.InfoDocumento)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(InfoDocumentoClient.GetBindingForEndpoint(EndpointConfiguration.InfoDocumento)); }