public SdtSdtResultado_RESTInterface execute(String CapacidadDeContenedores, String CargaTEU) { SdtSdtResultado_RESTInterface Gxm1sdtresultado = new SdtSdtResultado_RESTInterface(); try { dpwstest worker = new dpwstest(context); worker.IsMain = RunAsMain; decimal gxrCapacidadDeContenedores; gxrCapacidadDeContenedores = NumberUtil.Val((String)(CapacidadDeContenedores), "."); decimal gxrCargaTEU; gxrCargaTEU = NumberUtil.Val((String)(CargaTEU), "."); SdtSdtResultado gxrGxm1sdtresultado = Gxm1sdtresultado.sdt; worker.execute(gxrCapacidadDeContenedores, gxrCargaTEU, out gxrGxm1sdtresultado); worker.cleanup( ); Gxm1sdtresultado = new SdtSdtResultado_RESTInterface(gxrGxm1sdtresultado); return(Gxm1sdtresultado); } catch (Exception e) { WebException(e); } finally { Cleanup(); } return(null); }
public void executeSubmit(decimal aP0_CapacidadDeContenedores, decimal aP1_CargaTEU, out SdtSdtResultado aP2_Gxm1sdtresultado) { dpwstest objdpwstest; objdpwstest = new dpwstest(); objdpwstest.AV6CapacidadDeContenedores = aP0_CapacidadDeContenedores; objdpwstest.AV7CargaTEU = aP1_CargaTEU; objdpwstest.Gxm1sdtresultado = new SdtSdtResultado(context); objdpwstest.context.SetSubmitInitialConfig(context); objdpwstest.initialize(); ThreadPool.QueueUserWorkItem(new WaitCallback(executePrivateCatch), objdpwstest); aP2_Gxm1sdtresultado = this.Gxm1sdtresultado; }