コード例 #1
0
ファイル: Reference.cs プロジェクト: adearriba/Zeleris.NET
        public TrackingDocumentoXMLClient() :
            base(TrackingDocumentoXMLClient.GetDefaultBinding(), TrackingDocumentoXMLClient.GetDefaultEndpointAddress())
        {
            this.Endpoint.Name = EndpointConfiguration.TrackingDocumentoXML.ToString();

            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
コード例 #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));
        }
コード例 #3
0
ファイル: Reference.cs プロジェクト: adearriba/Zeleris.NET
 public TrackingDocumentoXMLClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(TrackingDocumentoXMLClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
コード例 #4
0
ファイル: Reference.cs プロジェクト: adearriba/Zeleris.NET
 public TrackingDocumentoXMLClient(EndpointConfiguration endpointConfiguration) :
     base(TrackingDocumentoXMLClient.GetBindingForEndpoint(endpointConfiguration), TrackingDocumentoXMLClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
コード例 #5
0
ファイル: Reference.cs プロジェクト: adearriba/Zeleris.NET
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(TrackingDocumentoXMLClient.GetEndpointAddress(EndpointConfiguration.TrackingDocumentoXML));
 }
コード例 #6
0
ファイル: Reference.cs プロジェクト: adearriba/Zeleris.NET
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(TrackingDocumentoXMLClient.GetBindingForEndpoint(EndpointConfiguration.TrackingDocumentoXML));
 }