示例#1
0
        public ModificaDocumentoClient() :
            base(ModificaDocumentoClient.GetDefaultBinding(), ModificaDocumentoClient.GetDefaultEndpointAddress())
        {
            this.Endpoint.Name = EndpointConfiguration.ModificaDocumento.ToString();

            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
示例#2
0
        public async Task <ModifyDocumentResponse> ModifyDocument(ModifyDocumentRequest request)
        {
            var accountInfo = _auth.GenerateSecurityInformation();

            request.AddAccountInfo(accountInfo);

            ModificaDocumentoClient client = new ModificaDocumentoClient();
            var result = await client.modificaDocumentoXMLAsync(request.BuildRequest());

            return(_deserializer.Deserialize <ModifyDocumentResponse>(result));
        }
示例#3
0
 public ModificaDocumentoClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(ModificaDocumentoClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
示例#4
0
 public ModificaDocumentoClient(EndpointConfiguration endpointConfiguration) :
     base(ModificaDocumentoClient.GetBindingForEndpoint(endpointConfiguration), ModificaDocumentoClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
示例#5
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(ModificaDocumentoClient.GetEndpointAddress(EndpointConfiguration.ModificaDocumento));
 }
示例#6
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(ModificaDocumentoClient.GetBindingForEndpoint(EndpointConfiguration.ModificaDocumento));
 }