public ModificaDocumentoClient() : base(ModificaDocumentoClient.GetDefaultBinding(), ModificaDocumentoClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.ModificaDocumento.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
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)); }
public ModificaDocumentoClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(ModificaDocumentoClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public ModificaDocumentoClient(EndpointConfiguration endpointConfiguration) : base(ModificaDocumentoClient.GetBindingForEndpoint(endpointConfiguration), ModificaDocumentoClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(ModificaDocumentoClient.GetEndpointAddress(EndpointConfiguration.ModificaDocumento)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(ModificaDocumentoClient.GetBindingForEndpoint(EndpointConfiguration.ModificaDocumento)); }