public static void CreateContext(HostWebService hostWS) { BasicHttpBinding navisionWSBinding = new BasicHttpBinding(); navisionWSBinding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly; navisionWSBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows; navisionWSBinding.MaxReceivedMessageSize = 2000971520; initEmpleadosPortCliente(navisionWSBinding, hostWS); initEntregaAlmacenEpisPortCliente(navisionWSBinding, hostWS); hostWS.tipoServicioWeb = HostWebService.tipoWebService.Codeunit; initAlmacenesClientesPortCliente(navisionWSBinding, hostWS); hostWS.tipoServicioWeb = HostWebService.tipoWebService.Page; initItemPortCliente(navisionWSBinding, hostWS); initPedidoVentasPortCliente(navisionWSBinding, hostWS); }
public RepositoryRepuestosCU(HostWebService hostWs) : base(hostWs) { }
public RepositoryPedidosVenta(HostWebService hostRespositorio) : base(hostRespositorio) { }
public RepositoryItem(HostWebService hostWs) : base(hostWs) { }
public RepositoryEmpleado(HostWebService hostWs) : base(hostWs) { }
private static void initAlmacenesClientesPortCliente(BasicHttpBinding navisionWSBinding, HostWebService hostWs) { contextAlmacenesRepuestos = new AlmacenRepuestos_PortClient(navisionWSBinding, new EndpointAddress(string.Format(hostWs.urlHost, "AlmacenRepuestos", HostWebService.tipoWebService.Codeunit.ToString()))); contextAlmacenesRepuestos.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Delegation; contextAlmacenesRepuestos.ClientCredentials.Windows.ClientCredential = new System.Net.NetworkCredential(hostWs.user, hostWs.password); }
private static void initPedidoVentasPortCliente(BasicHttpBinding navisionWSBinding, HostWebService hostWs) { contextPedidosVenta = new Pedidos_PortClient(navisionWSBinding, new EndpointAddress(string.Format(hostWs.urlHost, "Pedidos", HostWebService.tipoWebService.Page.ToString()))); contextPedidosVenta.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Delegation; contextPedidosVenta.ClientCredentials.Windows.ClientCredential = new System.Net.NetworkCredential(hostWs.user, hostWs.password); }
public RepositoryDatosEntreEmpresasCU(HostWebService hostRespositorio) : base(hostRespositorio) { }
public RepositoryEntragaAlmacenEpis(HostWebService hostWs) : base(hostWs) { }
public RespositoryBase(HostWebService hostRespositorio) { Context.CreateContext(hostRespositorio); }