Exemplo n.º 1
0
        public InfoDocumentoClient() :
            base(InfoDocumentoClient.GetDefaultBinding(), InfoDocumentoClient.GetDefaultEndpointAddress())
        {
            this.Endpoint.Name = EndpointConfiguration.InfoDocumento.ToString();

            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
 public InfoDocumentoClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(InfoDocumentoClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Exemplo n.º 4
0
 public InfoDocumentoClient(EndpointConfiguration endpointConfiguration) :
     base(InfoDocumentoClient.GetBindingForEndpoint(endpointConfiguration), InfoDocumentoClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Exemplo n.º 5
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(InfoDocumentoClient.GetEndpointAddress(EndpointConfiguration.InfoDocumento));
 }
Exemplo n.º 6
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(InfoDocumentoClient.GetBindingForEndpoint(EndpointConfiguration.InfoDocumento));
 }