Example #1
0
        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);
        }
Example #2
0
 public RepositoryRepuestosCU(HostWebService hostWs) : base(hostWs)
 {
 }
Example #3
0
 public RepositoryPedidosVenta(HostWebService hostRespositorio) : base(hostRespositorio)
 {
 }
Example #4
0
 public RepositoryItem(HostWebService hostWs) : base(hostWs)
 {
 }
Example #5
0
 public RepositoryEmpleado(HostWebService hostWs) : base(hostWs)
 {
 }
Example #6
0
 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);
 }
Example #7
0
 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);
 }
Example #8
0
 public RepositoryDatosEntreEmpresasCU(HostWebService hostRespositorio) : base(hostRespositorio)
 {
 }
 public RepositoryEntragaAlmacenEpis(HostWebService hostWs) : base(hostWs)
 {
 }
Example #10
0
 public RespositoryBase(HostWebService hostRespositorio)
 {
     Context.CreateContext(hostRespositorio);
 }