public static XDocument SendFacturaElectronica(XDocument docXml) { string respuesta = ""; try { var servicio = new GTICargaFacturaSoapClient(Ambiente); var response = servicio.InsertarDocumentosAsync(docXml.ToString(), Program.env.email, Program.env.password); response.Wait(); respuesta = response.Result; XDocument resXml = XDocument.Parse(respuesta); return(resXml); } catch (Exception ex) { Program.log.Error(ex.Message); return(null); } }
public GTICargaFacturaSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(GTICargaFacturaSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public GTICargaFacturaSoapClient(EndpointConfiguration endpointConfiguration) : base(GTICargaFacturaSoapClient.GetBindingForEndpoint(endpointConfiguration), GTICargaFacturaSoapClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }