Ejemplo n.º 1
0
        public TrackingDocumentoXMLClient() :
            base(TrackingDocumentoXMLClient.GetDefaultBinding(), TrackingDocumentoXMLClient.GetDefaultEndpointAddress())
        {
            this.Endpoint.Name = EndpointConfiguration.TrackingDocumentoXML.ToString();

            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
Ejemplo n.º 2
0
        public async Task <DocumentTrackingResponse> GetDocumentTracking(DocumentTrackingRequest request)
        {
            var accountInfo = _auth.GenerateSecurityInformation();

            request.AddAccountInfo(accountInfo);

            TrackingDocumentoXMLClient client = new TrackingDocumentoXMLClient();
            var result = await client.getTrackingDocumentoXMLAsync(request.BuildRequest());

            return(_deserializer.Deserialize <DocumentTrackingResponse>(result));
        }
Ejemplo n.º 3
0
 public TrackingDocumentoXMLClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(TrackingDocumentoXMLClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Ejemplo n.º 4
0
 public TrackingDocumentoXMLClient(EndpointConfiguration endpointConfiguration) :
     base(TrackingDocumentoXMLClient.GetBindingForEndpoint(endpointConfiguration), TrackingDocumentoXMLClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Ejemplo n.º 5
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(TrackingDocumentoXMLClient.GetEndpointAddress(EndpointConfiguration.TrackingDocumentoXML));
 }
Ejemplo n.º 6
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(TrackingDocumentoXMLClient.GetBindingForEndpoint(EndpointConfiguration.TrackingDocumentoXML));
 }