List of usage examples for javax.xml.ws Holder Holder
public Holder()
From source file:com.web.panacea.controller.ProjectController.java
@RequestMapping(value = "/saveProject", method = RequestMethod.POST) public String save(HttpSession session, @RequestParam Long taskId, ModelMap model, Project project) { String resultado = ""; projectServiceImpl.saveProject(project); //Inserta en el log Log log = new Log(); log.setProject(Project.findProject(project.getId())); log.setDateCreated(new Date()); log.setUsername(session.getAttribute("role").toString()); log.setDescription("Se cre el proyecto"); logServiceImpl.saveLog(log);//from www. j ava 2 s.c om List<Parametro> parametros = new ArrayList<Parametro>(); Setup setup = setupServiceImpl.findSetup(1L); Parametro parametro = new Parametro(); parametro.setLlave("svnHost_"); parametro.setValor(setup.getSvnHost()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("svnPort_"); parametro.setValor(setup.getSvnPort()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("svnUser_"); parametro.setValor(setup.getSvnUsername()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("svnPassword_"); parametro.setValor(setup.getSvnPassword()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("svnRepo_"); parametro.setValor("repo"); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jenkinsHost_"); parametro.setValor(setup.getJenkinsHost()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jenkinsPort_"); parametro.setValor(setup.getJenkinsPort()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jenkinsUser_"); parametro.setValor(setup.getJenkinsUsername()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jenkinsPassword_"); parametro.setValor(setup.getJenkinsPassword()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("operacion_"); parametro.setValor("crear"); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("proyecto_"); parametro.setValor(project.getName()); parametros.add(parametro); HumanTaskServiceService hts = new HumanTaskServiceService(); HumanTaskService service = hts.getHumanTaskServicePort(); User user = new User(); user.setId(session.getAttribute("role").toString()); Holder<TaskSummary> tarea = new Holder<TaskSummary>(); tarea.value = new TaskSummary(); tarea.value.setId(taskId); service.iniciarTarea(tarea, user); service.completarTarea(tarea, user, parametros); model.addAttribute("projects", projectServiceImpl.findAllProjects()); resultado = "listProjects"; return resultado; }
From source file:com.genscript.gsscm.epicorwebservice.service.ErpSalesOrderService.java
@Traced public void createSaleOrder(OrderMainDTO orderDTO, Map<String, OrderItemDTO> itemMap, String poNumber) { SalesOrderService salesOrderService = new SalesOrderService(); SalesOrderServiceSoap port = salesOrderService.getSalesOrderServiceSoap(); assertUserNameToken(port);// w w w .j a v a 2 s . c o m System.out.println("Invoking getNewOrderHed..."); String companyID = "GSUS"; SalesOrderDataSetType salesOrderDataSetType = null; com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType callContextIn = null; Holder<SalesOrderDataSetType> getNewOrderHedResult = new Holder<SalesOrderDataSetType>(); Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType> callContextOut = new Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType>(); port.getNewOrderHed(companyID, salesOrderDataSetType, callContextIn, getNewOrderHedResult, callContextOut); System.out.println("getNewOrderHed._getNewOrderHed_getNewOrderHedResult=" + getNewOrderHedResult.value); System.out.println("getNewOrderHed._getNewOrderHed_callContextOut=" + callContextOut.value); System.out.println("Invoking onChangeofSoldToCreditCheck..."); int iOrderNum = 0; String iCustID = "BARRISTON"; Holder<SalesOrderDataSetType> onChangeofSoldToCreditCheckResult = new Holder<SalesOrderDataSetType>(); Holder<String> cCreditLimitMessage = new Holder<String>(); Holder<Boolean> lContinue = new Holder<Boolean>(); Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType> _onChangeofSoldToCreditCheck_callContextOut = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType>(); port.onChangeofSoldToCreditCheck(companyID, iOrderNum, iCustID, getNewOrderHedResult.value, callContextOut.value, onChangeofSoldToCreditCheckResult, cCreditLimitMessage, lContinue, _onChangeofSoldToCreditCheck_callContextOut); System.out.println( "onChangeofSoldToCreditCheck._onChangeofSoldToCreditCheck_onChangeofSoldToCreditCheckResult=" + onChangeofSoldToCreditCheckResult.value); System.out.println("onChangeofSoldToCreditCheck._onChangeofSoldToCreditCheck_cCreditLimitMessage=" + cCreditLimitMessage.value); System.out.println("onChangeofSoldToCreditCheck._onChangeofSoldToCreditCheck_lContinue=" + lContinue.value); System.out.println("onChangeofSoldToCreditCheck._onChangeofSoldToCreditCheck_callContextOut=" + _onChangeofSoldToCreditCheck_callContextOut.value); System.out.println("Invoking changeSoldToID..."); // com.genscript.gsscm.epicorwebservice.stub.salesorder. // SalesOrderDataSetType _changeSoldToID_ds = null; // com.genscript.gsscm.epicorwebservice.stub.salesorder. // CallContextDataSetType _changeSoldToID_callContextIn = null; javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType> _changeSoldToID_changeSoldToIDResult = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType>(); javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType> _changeSoldToID_callContextOut = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType>(); port.changeSoldToID(companyID, onChangeofSoldToCreditCheckResult.value, _onChangeofSoldToCreditCheck_callContextOut.value, _changeSoldToID_changeSoldToIDResult, _changeSoldToID_callContextOut); System.out.println("changeSoldToID._changeSoldToID_changeSoldToIDResult=" + _changeSoldToID_changeSoldToIDResult.value); System.out.println("changeSoldToID._changeSoldToID_callContextOut=" + _changeSoldToID_callContextOut.value); System.out.println("Invoking changeCustomer..."); // com.genscript.gsscm.epicorwebservice.stub.salesorder. // SalesOrderDataSetType _changeCustomer_ds = null; // com.genscript.gsscm.epicorwebservice.stub.salesorder. // CallContextDataSetType _changeCustomer_callContextIn = null; javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType> _changeCustomer_changeCustomerResult = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType>(); javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType> _changeCustomer_callContextOut = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType>(); port.changeCustomer(companyID, _changeSoldToID_changeSoldToIDResult.value, _changeSoldToID_callContextOut.value, _changeCustomer_changeCustomerResult, _changeCustomer_callContextOut); System.out.println("changeCustomer._changeCustomer_changeCustomerResult=" + _changeCustomer_changeCustomerResult.value); System.out.println("changeCustomer._changeCustomer_callContextOut=" + _changeCustomer_callContextOut.value); System.out.println("Invoking masterUpdate..."); boolean _masterUpdate_lcheckForResponse = true; java.lang.String _masterUpdate_cTableName = "OrderHed"; int _masterUpdate_iCustNum = 3; int _masterUpdate_iOrderNum = 0; boolean _masterUpdate_lweLicensed = false; OrderHed updateOrderHed = (OrderHed) _changeCustomer_changeCustomerResult.value.getSalesOrderDataSet() .getOrderHedOrOrderHedAttchOrOHOrderMsc().get(0); updateOrderHed.setCurrencyCode(orderDTO.getOrderCurrency()); // if(orderDTO.getTax()!= null ){ // updateOrderHed.setRateGrpCode("RATE08"); // } //?Checkbox01=true??SOPO updateOrderHed.setCheckBox01(true); if (poNumber != null) { updateOrderHed.setPONum(poNumber); } List<OrderNote> shpList = orderNoteDao.getOrderNoteList(orderDTO.getOrderNo(), OrderInstructionType.SHIPMENT); if (shpList != null && !shpList.isEmpty()) { StringBuilder sb = new StringBuilder(); for (OrderNote orderNote : shpList) { sb.append(orderNote.getDescription()); } updateOrderHed.setShipComment(sb.toString()); } List<OrderNote> accountList = orderNoteDao.getOrderNoteList(orderDTO.getOrderNo(), OrderInstructionType.ACCOUNTING); if (accountList != null && !accountList.isEmpty()) { StringBuilder sb = new StringBuilder(); for (OrderNote orderNote : accountList) { sb.append(orderNote.getDescription()); } updateOrderHed.setInvoiceComment(sb.toString()); } // com.genscript.gsscm.epicorwebservice.stub.salesorder. // SalesOrderDataSetType _masterUpdate_ds = null; // com.genscript.gsscm.epicorwebservice.stub.salesorder. // CallContextDataSetType _masterUpdate_callContextIn = null; javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType> _masterUpdate_masterUpdateResult = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType>(); javax.xml.ws.Holder<java.lang.Boolean> _masterUpdate_lContinue = new javax.xml.ws.Holder<java.lang.Boolean>(); javax.xml.ws.Holder<java.lang.String> _masterUpdate_cResponseMsg = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.String> _masterUpdate_cDisplayMsg = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.String> _masterUpdate_cCompliantMsg = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType> _masterUpdate_callContextOut = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType>(); port.masterUpdate(companyID, _masterUpdate_lcheckForResponse, _masterUpdate_cTableName, _masterUpdate_iCustNum, _masterUpdate_iOrderNum, _masterUpdate_lweLicensed, _changeCustomer_changeCustomerResult.value, _changeCustomer_callContextOut.value, _masterUpdate_masterUpdateResult, _masterUpdate_lContinue, _masterUpdate_cResponseMsg, _masterUpdate_cDisplayMsg, _masterUpdate_cCompliantMsg, _masterUpdate_callContextOut); System.out .println("masterUpdate._masterUpdate_masterUpdateResult=" + _masterUpdate_masterUpdateResult.value); System.out.println("masterUpdate._masterUpdate_lContinue=" + _masterUpdate_lContinue.value); System.out.println("masterUpdate._masterUpdate_cResponseMsg=" + _masterUpdate_cResponseMsg.value); System.out.println("masterUpdate._masterUpdate_cDisplayMsg=" + _masterUpdate_cDisplayMsg.value); System.out.println("masterUpdate._masterUpdate_cCompliantMsg=" + _masterUpdate_cCompliantMsg.value); System.out.println("masterUpdate._masterUpdate_callContextOut=" + _masterUpdate_callContextOut.value); OrderHed orderHed = (OrderHed) _masterUpdate_masterUpdateResult.value.getSalesOrderDataSet() .getOrderHedOrOrderHedAttchOrOHOrderMsc().get(0); int i = 0; Iterator<Entry<String, OrderItemDTO>> it = itemMap.entrySet().iterator(); while (it.hasNext()) { //String sepChar = "-"; //StringBuilder partNumSB = new StringBuilder(); //partNumSB.append(orderDTO.getOrderNo()).append(sepChar); i++; Entry<String, OrderItemDTO> entry = it.next(); OrderItemDTO orderItemDTO = entry.getValue(); //partNumSB.append(orderItemDTO.getOrderItemId()).append(sepChar) // .append(orderItemDTO.getCatalogNo()); System.out.println("Invoking getNewOrderDtl..."); // com.genscript.gsscm.epicorwebservice.stub.salesorder. // SalesOrderDataSetType _getNewOrderDtl_ds = null; // OrderHed orderHed = // (OrderHed)_masterUpdate_masterUpdateResult.value // .getSalesOrderDataSet // ().getOrderHedOrOrderHedAttchOrOHOrderMsc().get(0); int _getNewOrderDtl_orderNum = orderHed.getOrderNum(); // com.genscript.gsscm.epicorwebservice.stub.salesorder. // CallContextDataSetType _getNewOrderDtl_callContextIn = null; javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType> _getNewOrderDtl_getNewOrderDtlResult = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType>(); javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType> _getNewOrderDtl_callContextOut = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType>(); port.getNewOrderDtl(companyID, _masterUpdate_masterUpdateResult.value, _getNewOrderDtl_orderNum, _masterUpdate_callContextOut.value, _getNewOrderDtl_getNewOrderDtlResult, _getNewOrderDtl_callContextOut); System.out.println("getNewOrderDtl._getNewOrderDtl_getNewOrderDtlResult=" + _getNewOrderDtl_getNewOrderDtlResult.value); System.out.println( "getNewOrderDtl._getNewOrderDtl_callContextOut=" + _getNewOrderDtl_callContextOut.value); System.out.println("Invoking changePartNumMaster..."); //java.lang.String _changePartNumMaster_partNumVal = partNumSB // .toString(); java.lang.String _changePartNumMaster_partNumVal = orderItemDTO.getCatalogNo(); // ? OrderDtl changePriceOrderDtl = (OrderDtl) _getNewOrderDtl_getNewOrderDtlResult.value .getSalesOrderDataSet().getOrderHedOrOrderHedAttchOrOHOrderMsc().get(i); //?OrderHed.ShortChar01 = GSJK, ??OrderHed.ShortChar01 = GSJR if ("PRODUCT".equalsIgnoreCase(orderItemDTO.getType())) { //product if (orderItemDTO.getClsId() == 2) { changePriceOrderDtl.setShortChar01("GSJK"); } else { changePriceOrderDtl.setShortChar01("GSJR"); } } else { if (orderItemDTO.getClsId() == 1) { changePriceOrderDtl.setShortChar01("GSJK"); } else { changePriceOrderDtl.setShortChar01("GSJR"); } } changePriceOrderDtl.setUnitPrice(orderItemDTO.getUnitPrice()); //changePriceOrderDtl.setDocDspUnitPrice(orderItemDTO.getUnitPrice()); changePriceOrderDtl.setDocDspDiscount(orderItemDTO.getDiscount()); if (orderItemDTO.getTargetDate() != null) { changePriceOrderDtl .setNeedByDate(DateUtils.convertToXMLGregorianCalendar(orderItemDTO.getTargetDate())); } javax.xml.ws.Holder<java.lang.String> _changePartNumMaster_partNum = new javax.xml.ws.Holder<java.lang.String>( _changePartNumMaster_partNumVal); java.lang.Boolean _changePartNumMaster_lSubstitutePartExistVal = false; javax.xml.ws.Holder<java.lang.Boolean> _changePartNumMaster_lSubstitutePartExist = new javax.xml.ws.Holder<java.lang.Boolean>( _changePartNumMaster_lSubstitutePartExistVal); java.lang.Boolean _changePartNumMaster_lIsPhantomVal = false; javax.xml.ws.Holder<java.lang.Boolean> _changePartNumMaster_lIsPhantom = new javax.xml.ws.Holder<java.lang.Boolean>( _changePartNumMaster_lIsPhantomVal); java.lang.String _changePartNumMaster_uomCodeVal = ""; javax.xml.ws.Holder<java.lang.String> _changePartNumMaster_uomCode = new javax.xml.ws.Holder<java.lang.String>( _changePartNumMaster_uomCodeVal); java.lang.String _changePartNumMaster_sysRowID = ""; java.lang.String _changePartNumMaster_rowType = ""; boolean _changePartNumMaster_salesKitView = false; boolean _changePartNumMaster_removeKitComponents = false; boolean _changePartNumMaster_suppressUserPrompts = false; boolean _changePartNumMaster_getPartXRefInfo = false; boolean _changePartNumMaster_checkPartRevisionChange = false; boolean _changePartNumMaster_checkChangeKitParent = false; // com.genscript.gsscm.epicorwebservice.stub.salesorder. // SalesOrderDataSetType _changePartNumMaster_ds = null; // com.genscript.gsscm.epicorwebservice.stub.salesorder. // CallContextDataSetType _changePartNumMaster_callContextIn = null; javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType> _changePartNumMaster_changePartNumMasterResult = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType>(); javax.xml.ws.Holder<java.lang.String> _changePartNumMaster_cDeleteComponentsMessage = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.String> _changePartNumMaster_questionString = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.String> _changePartNumMaster_cWarningMessage = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.Boolean> _changePartNumMaster_multipleMatch = new javax.xml.ws.Holder<java.lang.Boolean>(); javax.xml.ws.Holder<java.lang.Boolean> _changePartNumMaster_promptToExplodeBOM = new javax.xml.ws.Holder<java.lang.Boolean>(); javax.xml.ws.Holder<java.lang.String> _changePartNumMaster_cConfigPartMessage = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.String> _changePartNumMaster_cSubPartMessage = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.String> _changePartNumMaster_explodeBOMerrMessage = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.String> _changePartNumMaster_cMsgType = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.Boolean> _changePartNumMaster_multiSubsAvail = new javax.xml.ws.Holder<java.lang.Boolean>(); javax.xml.ws.Holder<java.lang.Boolean> _changePartNumMaster_runOutQtyAvail = new javax.xml.ws.Holder<java.lang.Boolean>(); javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType> _changePartNumMaster_callContextOut = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType>(); port.changePartNumMaster(companyID, _changePartNumMaster_partNum, _changePartNumMaster_lSubstitutePartExist, _changePartNumMaster_lIsPhantom, _changePartNumMaster_uomCode, _changePartNumMaster_sysRowID, _changePartNumMaster_rowType, _changePartNumMaster_salesKitView, _changePartNumMaster_removeKitComponents, _changePartNumMaster_suppressUserPrompts, _changePartNumMaster_getPartXRefInfo, _changePartNumMaster_checkPartRevisionChange, _changePartNumMaster_checkChangeKitParent, _getNewOrderDtl_getNewOrderDtlResult.value, _getNewOrderDtl_callContextOut.value, _changePartNumMaster_changePartNumMasterResult, _changePartNumMaster_cDeleteComponentsMessage, _changePartNumMaster_questionString, _changePartNumMaster_cWarningMessage, _changePartNumMaster_multipleMatch, _changePartNumMaster_promptToExplodeBOM, _changePartNumMaster_cConfigPartMessage, _changePartNumMaster_cSubPartMessage, _changePartNumMaster_explodeBOMerrMessage, _changePartNumMaster_cMsgType, _changePartNumMaster_multiSubsAvail, _changePartNumMaster_runOutQtyAvail, _changePartNumMaster_callContextOut); // System.out // .println("changePartNumMaster._changePartNumMaster_partNum=" // + _changePartNumMaster_partNum.value); // System.out // .println("changePartNumMaster._changePartNumMaster_lSubstitutePartExist=" // + _changePartNumMaster_lSubstitutePartExist.value); // System.out // .println("changePartNumMaster._changePartNumMaster_lIsPhantom=" // + _changePartNumMaster_lIsPhantom.value); // System.out // .println("changePartNumMaster._changePartNumMaster_uomCode=" // + _changePartNumMaster_uomCode.value); // System.out // .println("changePartNumMaster._changePartNumMaster_changePartNumMasterResult=" // + _changePartNumMaster_changePartNumMasterResult.value); // System.out // .println("changePartNumMaster._changePartNumMaster_cDeleteComponentsMessage=" // + _changePartNumMaster_cDeleteComponentsMessage.value); // System.out // .println("changePartNumMaster._changePartNumMaster_questionString=" // + _changePartNumMaster_questionString.value); // System.out // .println("changePartNumMaster._changePartNumMaster_cWarningMessage=" // + _changePartNumMaster_cWarningMessage.value); // System.out // .println("changePartNumMaster._changePartNumMaster_multipleMatch=" // + _changePartNumMaster_multipleMatch.value); // System.out // .println("changePartNumMaster._changePartNumMaster_promptToExplodeBOM=" // + _changePartNumMaster_promptToExplodeBOM.value); // System.out // .println("changePartNumMaster._changePartNumMaster_cConfigPartMessage=" // + _changePartNumMaster_cConfigPartMessage.value); // System.out // .println("changePartNumMaster._changePartNumMaster_cSubPartMessage=" // + _changePartNumMaster_cSubPartMessage.value); // System.out // .println("changePartNumMaster._changePartNumMaster_explodeBOMerrMessage=" // + _changePartNumMaster_explodeBOMerrMessage.value); // System.out // .println("changePartNumMaster._changePartNumMaster_cMsgType=" // + _changePartNumMaster_cMsgType.value); // System.out // .println("changePartNumMaster._changePartNumMaster_multiSubsAvail=" // + _changePartNumMaster_multiSubsAvail.value); // System.out // .println("changePartNumMaster._changePartNumMaster_runOutQtyAvail=" // + _changePartNumMaster_runOutQtyAvail.value); // System.out // .println("changePartNumMaster._changePartNumMaster_callContextOut=" // + _changePartNumMaster_callContextOut.value); System.out.println("Invoking changeSellingQtyMaster..."); // com.genscript.gsscm.epicorwebservice.stub.salesorder. // SalesOrderDataSetType _changeSellingQtyMaster_ds = null; java.math.BigDecimal _changeSellingQtyMaster_ipSellingQuantity = new java.math.BigDecimal( orderItemDTO.getQuantity()); boolean _changeSellingQtyMaster_chkSellQty = false; boolean _changeSellingQtyMaster_negInvTest = false; boolean _changeSellingQtyMaster_chgSellQty = true; boolean _changeSellingQtyMaster_chgDiscPer = true; boolean _changeSellingQtyMaster_suppressUserPrompts = false; boolean _changeSellingQtyMaster_lKeepUnitPrice = false; java.lang.String _changeSellingQtyMaster_pcPartNum = _changePartNumMaster_partNum.value; java.lang.String _changeSellingQtyMaster_pcWhseCode = ""; java.lang.String _changeSellingQtyMaster_pcBinNum = ""; java.lang.String _changeSellingQtyMaster_pcLotNum = ""; java.lang.String _changeSellingQtyMaster_pcDimCode = "EA"; java.math.BigDecimal _changeSellingQtyMaster_pdDimConvFactor = new java.math.BigDecimal("1"); // com.genscript.gsscm.epicorwebservice.stub.salesorder. // CallContextDataSetType _changeSellingQtyMaster_callContextIn = // null; javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType> _changeSellingQtyMaster_changeSellingQtyMasterResult = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType>(); javax.xml.ws.Holder<java.lang.String> _changeSellingQtyMaster_pcMessage = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.String> _changeSellingQtyMaster_pcNeqQtyAction = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.String> _changeSellingQtyMaster_opWarningMsg = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<java.lang.String> _changeSellingQtyMaster_cSellingQuantityChangedMsgText = new javax.xml.ws.Holder<java.lang.String>(); javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType> _changeSellingQtyMaster_callContextOut = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType>(); port.changeSellingQtyMaster(companyID, _changePartNumMaster_changePartNumMasterResult.value, _changeSellingQtyMaster_ipSellingQuantity, _changeSellingQtyMaster_chkSellQty, _changeSellingQtyMaster_negInvTest, _changeSellingQtyMaster_chgSellQty, _changeSellingQtyMaster_chgDiscPer, _changeSellingQtyMaster_suppressUserPrompts, _changeSellingQtyMaster_lKeepUnitPrice, _changeSellingQtyMaster_pcPartNum, _changeSellingQtyMaster_pcWhseCode, _changeSellingQtyMaster_pcBinNum, _changeSellingQtyMaster_pcLotNum, _changeSellingQtyMaster_pcDimCode, _changeSellingQtyMaster_pdDimConvFactor, _changePartNumMaster_callContextOut.value, _changeSellingQtyMaster_changeSellingQtyMasterResult, _changeSellingQtyMaster_pcMessage, _changeSellingQtyMaster_pcNeqQtyAction, _changeSellingQtyMaster_opWarningMsg, _changeSellingQtyMaster_cSellingQuantityChangedMsgText, _changeSellingQtyMaster_callContextOut); // System.out // .println("changeSellingQtyMaster._changeSellingQtyMaster_changeSellingQtyMasterResult=" // + _changeSellingQtyMaster_changeSellingQtyMasterResult.value); // System.out // .println("changeSellingQtyMaster._changeSellingQtyMaster_pcMessage=" // + _changeSellingQtyMaster_pcMessage.value); // System.out // .println("changeSellingQtyMaster._changeSellingQtyMaster_pcNeqQtyAction=" // + _changeSellingQtyMaster_pcNeqQtyAction.value); // System.out // .println("changeSellingQtyMaster._changeSellingQtyMaster_opWarningMsg=" // + _changeSellingQtyMaster_opWarningMsg.value); // System.out // .println("changeSellingQtyMaster._changeSellingQtyMaster_cSellingQuantityChangedMsgText=" // + _changeSellingQtyMaster_cSellingQuantityChangedMsgText.value); // System.out // .println("changeSellingQtyMaster._changeSellingQtyMaster_callContextOut=" // + _changeSellingQtyMaster_callContextOut.value); // System.out.println("Invoking changeUnitPrice..."); // // //? // OrderDtl changePriceOrderDtl = // (OrderDtl)_changeSellingQtyMaster_changeSellingQtyMasterResult // .value // .getSalesOrderDataSet().getOrderHedOrOrderHedAttchOrOHOrderMsc // ().get(i); // changePriceOrderDtl.setUnitPrice(orderItemDTO.getUnitPrice()); //changePriceOrderDtl.setDocDspUnitPrice(orderItemDTO.getUnitPrice() // ); //changePriceOrderDtl.setDocDspDiscount(orderItemDTO.getDiscount()); // if(orderItemDTO.getTargetDate() != null){ // changePriceOrderDtl.setNeedByDate(DateUtils. // convertToXMLGregorianCalendar(orderItemDTO.getTargetDate())); // } // javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub. // salesorder.SalesOrderDataSetType> // _changeUnitPrice_changeUnitPriceResult = new // javax.xml.ws.Holder<com // .genscript.gsscm.epicorwebservice.stub.salesorder // .SalesOrderDataSetType>(); // javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub. // salesorder.CallContextDataSetType> // _changeUnitPrice_callContextOut = new // javax.xml.ws.Holder<com.genscript // .gsscm.epicorwebservice.stub.salesorder // .CallContextDataSetType>(); // port.changeUnitPrice(companyID, // _changeSellingQtyMaster_changeSellingQtyMasterResult.value, // _changeSellingQtyMaster_callContextOut.value, // _changeUnitPrice_changeUnitPriceResult, // _changeUnitPrice_callContextOut); // // System.out //.println("changeUnitPrice._changeUnitPrice_changeUnitPriceResult=" // + _changeUnitPrice_changeUnitPriceResult.value); // System.out // .println("changeUnitPrice._changeUnitPrice_callContextOut=" // + _changeUnitPrice_callContextOut.value); System.out.println("Invoking masterUpdate..."); _masterUpdate_lcheckForResponse = true; _masterUpdate_cTableName = "OrderDtl"; _masterUpdate_iCustNum = 3; _masterUpdate_lweLicensed = false; OrderDtl updateOrderDtl = (OrderDtl) _changeSellingQtyMaster_changeSellingQtyMasterResult.value .getSalesOrderDataSet().getOrderHedOrOrderHedAttchOrOHOrderMsc().get(i); //updateOrderDtl.setLineDesc(orderItemDTO.getShortDesc()); updateOrderDtl.setLineDesc(orderItemDTO.getName()); if ("Item Completed".equalsIgnoreCase(orderItemDTO.getShippingRule())) { updateOrderDtl.setCheckBox02(true); } updateOrderDtl.setPartNum(orderItemDTO.getCatalogNo()); _masterUpdate_iOrderNum = updateOrderDtl.getOrderNum(); // com.genscript.gsscm.epicorwebservice.stub.salesorder. // SalesOrderDataSetType _masterUpdate_ds = null; // com.genscript.gsscm.epicorwebservice.stub.salesorder. // CallContextDataSetType _masterUpdate_callContextIn = null; _masterUpdate_masterUpdateResult = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType>(); _masterUpdate_lContinue = new javax.xml.ws.Holder<java.lang.Boolean>(); _masterUpdate_cResponseMsg = new javax.xml.ws.Holder<java.lang.String>(); _masterUpdate_cDisplayMsg = new javax.xml.ws.Holder<java.lang.String>(); _masterUpdate_cCompliantMsg = new javax.xml.ws.Holder<java.lang.String>(); _masterUpdate_callContextOut = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType>(); port.masterUpdate(companyID, _masterUpdate_lcheckForResponse, _masterUpdate_cTableName, _masterUpdate_iCustNum, _masterUpdate_iOrderNum, _masterUpdate_lweLicensed, _changeSellingQtyMaster_changeSellingQtyMasterResult.value, _changeSellingQtyMaster_callContextOut.value, _masterUpdate_masterUpdateResult, _masterUpdate_lContinue, _masterUpdate_cResponseMsg, _masterUpdate_cDisplayMsg, _masterUpdate_cCompliantMsg, _masterUpdate_callContextOut); System.out.println( "masterUpdate._masterUpdate_masterUpdateResult=" + _masterUpdate_masterUpdateResult.value); System.out.println("masterUpdate._masterUpdate_lContinue=" + _masterUpdate_lContinue.value); System.out.println("masterUpdate._masterUpdate_cResponseMsg=" + _masterUpdate_cResponseMsg.value); System.out.println("masterUpdate._masterUpdate_cDisplayMsg=" + _masterUpdate_cDisplayMsg.value); System.out.println("masterUpdate._masterUpdate_cCompliantMsg=" + _masterUpdate_cCompliantMsg.value); System.out.println("masterUpdate._masterUpdate_callContextOut=" + _masterUpdate_callContextOut.value); } System.out.println("Invoking getNewOHOrderMsc..."); _masterUpdate_iOrderNum = orderHed.getOrderNum(); int _getNewOHOrderMsc_orderLine = 0; javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType> _getNewOHOrderMsc_getNewOHOrderMscResult = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType>(); javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType> _getNewOHOrderMsc_callContextOut = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType>(); port.getNewOHOrderMsc(companyID, _masterUpdate_masterUpdateResult.value, _masterUpdate_iOrderNum, _getNewOHOrderMsc_orderLine, _masterUpdate_callContextOut.value, _getNewOHOrderMsc_getNewOHOrderMscResult, _getNewOHOrderMsc_callContextOut); System.out.println("getNewOHOrderMsc._getNewOHOrderMsc_getNewOHOrderMscResult=" + _getNewOHOrderMsc_getNewOHOrderMscResult.value); System.out.println( "getNewOHOrderMsc._getNewOHOrderMsc_callContextOut=" + _getNewOHOrderMsc_callContextOut.value); OHOrderMsc changeOHOrderMsc = (OHOrderMsc) _getNewOHOrderMsc_getNewOHOrderMscResult.value .getSalesOrderDataSet().getOrderHedOrOrderHedAttchOrOHOrderMsc().get(1); if (orderDTO.getShipAmt() != null) { changeOHOrderMsc.setMiscAmt(new BigDecimal(orderDTO.getShipAmt())); } changeOHOrderMsc.setMiscCode("TRAV"); changeOHOrderMsc.setFreqCode("E"); _masterUpdate_cTableName = "OrderMsc"; _masterUpdate_masterUpdateResult = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.SalesOrderDataSetType>(); _masterUpdate_lContinue = new javax.xml.ws.Holder<java.lang.Boolean>(); _masterUpdate_cResponseMsg = new javax.xml.ws.Holder<java.lang.String>(); _masterUpdate_cDisplayMsg = new javax.xml.ws.Holder<java.lang.String>(); _masterUpdate_cCompliantMsg = new javax.xml.ws.Holder<java.lang.String>(); _masterUpdate_callContextOut = new javax.xml.ws.Holder<com.genscript.gsscm.epicorwebservice.stub.salesorder.CallContextDataSetType>(); port.masterUpdate(companyID, _masterUpdate_lcheckForResponse, _masterUpdate_cTableName, _masterUpdate_iCustNum, _masterUpdate_iOrderNum, _masterUpdate_lweLicensed, _getNewOHOrderMsc_getNewOHOrderMscResult.value, _getNewOHOrderMsc_callContextOut.value, _masterUpdate_masterUpdateResult, _masterUpdate_lContinue, _masterUpdate_cResponseMsg, _masterUpdate_cDisplayMsg, _masterUpdate_cCompliantMsg, _masterUpdate_callContextOut); }
From source file:com.evolveum.midpoint.testing.wstest.TestReportServices.java
@Test public void test120ListReportOutputs() throws Exception { final String TEST_NAME = "test120ListReportOutputs"; displayTestTitle(TEST_NAME);// w w w . jav a 2 s .com Holder<ObjectListType> objectListHolder = new Holder<>(); Holder<OperationResultType> resultHolder = new Holder<>(); // WHEN displayWhen(TEST_NAME); modelPort.searchObjects(ModelClientUtil.getTypeQName(ReportOutputType.class), null, null, objectListHolder, resultHolder); // THEN displayThen(TEST_NAME); assertSuccess(resultHolder); ObjectListType objectList = objectListHolder.value; for (ObjectType searchResult : objectList.getObject()) { display(searchResult); if (!(searchResult instanceof ReportOutputType)) { AssertJUnit.fail("Got wrong type " + searchResult); } ReportOutputType reportOutput = (ReportOutputType) searchResult; String filePath = reportOutput.getFilePath(); reportOutputFname = filePath.substring(filePath.lastIndexOf("/"), filePath.length()); display("fname: " + reportOutputFname); reportOutputOid = searchResult.getOid(); } assertEquals("Unexpected number of report outputs", 1, objectList.getObject().size()); }
From source file:com.evolveum.midpoint.testing.model.client.sample.Main.java
private static SystemConfigurationType getConfiguration(ModelPortType modelPort) throws FaultMessage { Holder<ObjectType> objectHolder = new Holder<ObjectType>(); Holder<OperationResultType> resultHolder = new Holder<OperationResultType>(); SelectorQualifiedGetOptionsType options = new SelectorQualifiedGetOptionsType(); modelPort.getObject(ModelClientUtil.getTypeQName(SystemConfigurationType.class), SystemObjectsType.SYSTEM_CONFIGURATION.value(), options, objectHolder, resultHolder); return (SystemConfigurationType) objectHolder.value; }
From source file:com.web.panacea.controller.ProjectController.java
@RequestMapping(value = "/executeBuildProject", method = RequestMethod.GET) public String executeBuild(HttpSession session, @RequestParam Long projectId, @RequestParam Long taskId, ModelMap model) {/*from w w w. j av a 2 s . c o m*/ Project project = projectServiceImpl.findProject(projectId); List<Parametro> parametros = new ArrayList<Parametro>(); Setup setup = setupServiceImpl.findSetup(1L); Parametro parametro = new Parametro(); parametro.setLlave("jenkinsHost_"); parametro.setValor(setup.getJenkinsHost()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jenkinsPort_"); parametro.setValor(setup.getJenkinsPort()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jenkinsUser_"); parametro.setValor(setup.getJenkinsUsername()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jenkinsPassword_"); parametro.setValor(setup.getJenkinsPassword()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("operacion_"); parametro.setValor("ejecutar"); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("proyecto_"); parametro.setValor(project.getName()); parametros.add(parametro); HumanTaskServiceService hts = new HumanTaskServiceService(); HumanTaskService service = hts.getHumanTaskServicePort(); User user = new User(); user.setId(session.getAttribute("role").toString()); Holder<TaskSummary> tarea = new Holder<TaskSummary>(); tarea.value = new TaskSummary(); tarea.value.setId(taskId); service.iniciarTarea(tarea, user); service.completarTarea(tarea, user, parametros); model.addAttribute("projects", projectServiceImpl.findAllProjects()); return "listProjects"; }
From source file:com.evolveum.midpoint.testing.model.client.sample.Main.java
private static UserType getUser(ModelPortType modelPort, String oid) throws FaultMessage { Holder<ObjectType> objectHolder = new Holder<ObjectType>(); Holder<OperationResultType> resultHolder = new Holder<OperationResultType>(); SelectorQualifiedGetOptionsType options = new SelectorQualifiedGetOptionsType(); modelPort.getObject(ModelClientUtil.getTypeQName(UserType.class), oid, options, objectHolder, resultHolder); return (UserType) objectHolder.value; }
From source file:de.dentrassi.pm.storage.web.channel.ChannelController.java
@RequestMapping(value = "/channel/createWithRecipe", method = RequestMethod.POST) public ModelAndView createWithRecipePost(@Valid @FormData("command") final CreateChannel data, @RequestParameter(required = false, value = "recipe") final String recipeId, final BindingResult result) throws UnsupportedEncodingException, RecipeNotFoundException { if (!result.hasErrors()) { final Holder<Channel> holder = new Holder<>(); final Holder<String> targetHolder = new Holder<>(); if (recipeId == null || recipeId.isEmpty()) { // without recipe holder.value = this.service.createChannel(data.getName(), data.getDescription()); } else {//from w ww . ja v a 2s. co m // with recipe Activator.getRecipes().process(recipeId, recipe -> { final Channel channel = this.service.createChannel(data.getName(), data.getDescription()); final LinkTarget target = recipe.setup(channel); if (target != null) { final Map<String, String> model = new HashMap<>(1); model.put("channelId", channel.getId()); targetHolder.value = target.expand(model).getUrl(); } holder.value = channel; }); if (targetHolder.value != null) { return new ModelAndView("redirect:" + targetHolder.value); } } return new ModelAndView( String.format("redirect:/channel/%s/view", URLEncoder.encode(holder.value.getId(), "UTF-8"))); } final Map<String, Object> model = new HashMap<>(2); model.put("recipes", Activator.getRecipes().getSortedRecipes(RecipeInformation::getLabel)); return new ModelAndView("channel/createWithRecipe", model); }
From source file:com.evolveum.midpoint.testing.model.client.sample.Main.java
private static Collection<ResourceType> listResources(ModelPortType modelPort) throws SAXException, IOException, FaultMessage { SelectorQualifiedGetOptionsType options = new SelectorQualifiedGetOptionsType(); Holder<ObjectListType> objectListHolder = new Holder<ObjectListType>(); Holder<OperationResultType> resultHolder = new Holder<OperationResultType>(); modelPort.searchObjects(ModelClientUtil.getTypeQName(ResourceType.class), null, options, objectListHolder, resultHolder);//from w ww .j a v a 2 s .co m ObjectListType objectList = objectListHolder.value; return (Collection) objectList.getObject(); }
From source file:com.web.panacea.controller.PromotionRequestController.java
@RequestMapping(value = "/promoteToNextLevel", method = RequestMethod.POST) public String nextLevel(HttpSession session, @RequestParam String version, @RequestParam String comments, @RequestParam String commentsA, @RequestParam String outcome, @RequestParam Long projectId, @RequestParam Long taskId, ModelMap model) { Project project = projectServiceImpl.findProject(projectId); List<Parametro> parametros = new ArrayList<Parametro>(); Setup setup = setupServiceImpl.findSetup(1L); Parametro parametro = new Parametro(); parametro.setLlave("proyecto_"); parametro.setValor(project.getName()); parametros.add(parametro);/*from w w w . j a va 2 s.c o m*/ parametro = new Parametro(); parametro.setLlave("groupId_"); parametro.setValor(project.getGroupId().replaceAll("\\.", "/")); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("packaging_"); parametro.setValor(project.getPackaging()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jenkinsHost_"); parametro.setValor(setup.getJenkinsHost()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jenkinsPort_"); parametro.setValor(setup.getJenkinsPort()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jenkinsUser_"); parametro.setValor(setup.getJenkinsUsername()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jenkinsPassword_"); parametro.setValor(setup.getJenkinsPassword()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("outcome_"); parametro.setValor(outcome); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("version_"); parametro.setValor(version); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("comentarios_"); parametro.setValor(commentsA + "\n" + comments); parametros.add(parametro); String rol = sessionServiceImpl.getRole(session); Environment environment = null; for (Environment e : project.getEnvironments()) { if (rol.equals("DEV")) { PromotionRequest pr = promotionRequestServiceImpl.findByProject(project); pr.setVersionPromover(version); pr = promotionRequestServiceImpl.updatePromotionRequest(pr); } if (rol.equals(e.getName())) { environment = e; } } parametro = new Parametro(); parametro.setLlave("jbossHost_"); parametro.setValor(environment.getHost()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jbossPort_"); parametro.setValor(environment.getPort()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jbossUser_"); parametro.setValor(environment.getUsername()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("jbossPassword_"); parametro.setValor(environment.getPassword()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("artifactoryHost_"); parametro.setValor(setup.getArtifactoryHost()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("artifactoryPort_"); parametro.setValor(setup.getArtifactoryPort()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("artifactoryUser_"); parametro.setValor(setup.getArtifactoryUsername()); parametros.add(parametro); parametro = new Parametro(); parametro.setLlave("artifactoryPassword_"); parametro.setValor(setup.getArtifactoryPassword()); parametros.add(parametro); HumanTaskServiceService hts = new HumanTaskServiceService(); HumanTaskService service = hts.getHumanTaskServicePort(); User user = new User(); user.setId(session.getAttribute("role").toString()); Holder<TaskSummary> tarea = new Holder<TaskSummary>(); tarea.value = new TaskSummary(); tarea.value.setId(taskId); service.iniciarTarea(tarea, user); service.completarTarea(tarea, user, parametros); List<TaskSummary> tareas = service.obtenerTareasGrupos(user, null); model.addAttribute("tareas", tareas); return "taskTray"; }
From source file:com.cisco.dvbu.ps.deploytool.dao.wsapi.ResourceWSDAOImpl.java
@SuppressWarnings("unused") public void executeProcedure(String serverId, String procedureName, String dataServiceName, String pathToServersXML, String arguments, Boolean outputReturnVariables) throws CompositeException { if (logger.isDebugEnabled()) { logger.debug(//from w ww . j a v a2s .c om "ResourceWSDAOImpl.executeProcedure(serverId, procedureName, dataServiceName, pathToServersXML, arguments). serverId=" + serverId + " procedureName=" + procedureName + " dataServiceName=" + dataServiceName + " pathToServersXML=" + pathToServersXML + " arguments=" + arguments); } // read target server properties from server xml and build target server object based on target server name CompositeServer targetServer = WsApiHelperObjects.getServerLogger(serverId, pathToServersXML, "ResourceWSDAOImpl.executeProcedure", logger); // Ping the Server to make sure it is alive and the values are correct. WsApiHelperObjects.pingServer(targetServer, true); // Construct the execute port based on target server name ExecutePortType port = CisApiFactory.getExecutePort(targetServer); String procedureScript = ""; if (arguments == null || arguments.trim().length() == 0 || arguments.trim().equals("\"\"")) { procedureScript = "select * from " + procedureName + "()"; } else { procedureScript = "select * from " + procedureName + "(" + arguments + ")"; } try { if (logger.isInfoEnabled()) { logger.info("ResourceWSDAOImpl.executeProcedure(). Calling executeSql with sql " + procedureScript); } if (logger.isDebugEnabled()) { logger.debug("ResourceWSDAOImpl.executeProcedure(). Invoking port.executeSql(\"" + procedureScript + "\", true, false, 0, 1, false, null, null, \"" + dataServiceName + "\", null, null, null, null, null, null, null)."); } /* * void com.compositesw.services.system.admin.ExecutePortType.executeSql( * @WebParam(name="sqlText", targetNamespace="http://www.compositesw.com/services/system/admin/execute") String sqlText, * @WebParam(name="isBlocking", targetNamespace="http://www.compositesw.com/services/system/admin/execute") Boolean isBlocking, * @WebParam(name="includeMetadata", targetNamespace="http://www.compositesw.com/services/system/admin/execute") Boolean includeMetadata, * @WebParam(name="skipRows", targetNamespace="http://www.compositesw.com/services/system/admin/execute") Integer skipRows, * @WebParam(name="maxRows", targetNamespace="http://www.compositesw.com/services/system/admin/execute") Integer maxRows, * @WebParam(name="consumeRemainingRows", targetNamespace="http://www.compositesw.com/services/system/admin/execute") Boolean consumeRemainingRows, * @WebParam(name="users", targetNamespace="http://www.compositesw.com/services/system/admin/execute") DomainMemberReferenceList users, * @WebParam(name="groups", targetNamespace="http://www.compositesw.com/services/system/admin/execute") DomainMemberReferenceList groups, * @WebParam(name="dataServiceName", targetNamespace="http://www.compositesw.com/services/system/admin/execute") String dataServiceName, * @WebParam(name="completed", targetNamespace="http://www.compositesw.com/services/system/admin/execute", mode=Mode.OUT) Holder<Boolean> completed, * @WebParam(name="requestStatus", targetNamespace="http://www.compositesw.com/services/system/admin/execute", mode=Mode.OUT) Holder<RequestStatus> requestStatus, * @WebParam(name="metadata", targetNamespace="http://www.compositesw.com/services/system/admin/execute", mode=Mode.OUT) Holder<ColumnList> metadata, * @WebParam(name="rowsAffected", targetNamespace="http://www.compositesw.com/services/system/admin/execute", mode=Mode.OUT) Holder<Integer> rowsAffected, * @WebParam(name="result", targetNamespace="http://www.compositesw.com/services/system/admin/execute", mode=Mode.OUT) Holder<TabularValue> result, * @WebParam(name="resultId", targetNamespace="http://www.compositesw.com/services/system/admin/execute", mode=Mode.OUT) Holder<String> resultId, * @WebParam(name="requestId", targetNamespace="http://www.compositesw.com/services/system/admin/execute", mode=Mode.OUT) Holder<Long> requestId) * throws ExecuteSqlSoapFault @WebMethod(action="executeSql") @RequestWrapper(localName="executeSql", targetNamespace="http://www.compositesw.com/services/system/admin/execute", className="com.compositesw.services.system.admin.execute.ExecuteSqlRequest") @ResponseWrapper(localName="executeSqlResponse", targetNamespace="http://www.compositesw.com/services/system/admin/execute", className="com.compositesw.services.system.admin.execute.ExecuteSqlResponse") */ Holder<Boolean> completed = new Holder<Boolean>(); Holder<RequestStatus> requestStatus = new Holder<RequestStatus>(); Holder<ColumnList> metadata = new Holder<ColumnList>(); Holder<Integer> rowsAffected = new Holder<Integer>(); Holder<TabularValue> result = new Holder<TabularValue>(); Holder<String> resultId = new Holder<String>(); Holder<Long> requestId = new Holder<Long>(); // Set the command and action name String command = "executeSql"; String actionName = "executeProcedure"; // Don't execute if -noop (NO_OPERATION) has been set otherwise execute under normal operation. if (CommonUtils.isExecOperation()) { // Execute the published CIS procedure port.executeSql(procedureScript, true, true, 0, null, true, null, null, dataServiceName, completed, requestStatus, metadata, rowsAffected, result, resultId, requestId); if (!outputReturnVariables) { logger.info("ResourceWSDAOImpl.executeProcedure(). Successfully executed: port.executeSql()."); } else { String resultStatistics = "ResourceWSDAOImpl.executeProcedure(). Successfully executed: port.executeSql(). "; if (completed != null && logger.isDebugEnabled()) resultStatistics = resultStatistics + "completed=" + completed.value.toString() + ", "; if (requestStatus != null) resultStatistics = resultStatistics + "requestStatus=" + requestStatus.value.toString() + ", "; if (rowsAffected != null) resultStatistics = resultStatistics + "rowsAffected=" + rowsAffected.value.toString() + ", "; if (resultId != null && logger.isDebugEnabled()) resultStatistics = resultStatistics + "resultId=" + resultId.value.toString() + ", "; if (requestId != null && logger.isDebugEnabled()) resultStatistics = resultStatistics + "requestId=" + requestId.value.toString() + ", "; resultStatistics = resultStatistics.trim(); resultStatistics = resultStatistics.substring(0, resultStatistics.length() - 1); logger.info(resultStatistics); resultStatistics = "Procedure output for variables: ["; // Extract metadata String[] columnList = new String[0]; if (metadata != null) { List<Column> columns = metadata.value.getColumn(); int size = columns.size(); columnList = new String[size]; int i = 0; for (Column col : columns) { columnList[i] = col.getName(); if (i > 0) resultStatistics = resultStatistics + ", "; resultStatistics = resultStatistics + col.getName(); i = i + 1; } } resultStatistics = resultStatistics + "]"; logger.info(resultStatistics); // Extract values String[] values = new String[0]; if (result != null) { TabularValue res = result.value; if (res != null) { List<ValueList> rows = res.getRows().getRow(); if (rows != null) { // Determine the size of the value array int size = 0; for (ValueList row : rows) { for (Value val : row.getValue()) { size++; } } // Declare the size values = new String[size]; int i = 0; for (ValueList row : rows) { for (Value val : row.getValue()) { if (val != null) values[i++] = val.getValue(); else values[i++] = null; } } } } } // Process the columns and values if (columnList != null) { int valuelen = 0; String columname = null; for (int i = 0; i < columnList.length; i++) { String val = null; columname = columnList[i]; if (i < values.length) { val = values[i]; valuelen = i + 1; } logger.info(columname + '=' + val); } if (valuelen < values.length) { for (int i = valuelen; i < values.length; i++) { String val = values[i]; logger.info(columname + '=' + val); } } } } } else { logger.info("\n\nWARNING - NO_OPERATION: COMMAND [" + command + "], ACTION [" + actionName + "] WAS NOT PERFORMED.\n"); } } catch (ExecuteSqlSoapFault e) { /* * List<ResourceType> resourceList = getResources(serverId, procedureIds, pathToResourceXML, pathToServersXML); if (resourceList != null && resourceList.size() > 0) { for (ResourceType resource : resourceList) if (e.getFaultInfo().getErrorEntry() != null) { for (MessageEntry me : e.getFaultInfo().getErrorEntry()) { logger.error("ExecuteSqlSoapFault ------------------- Composite Server SOAP Fault MessageEntry Begin -------------------"); logger.error("ExecuteSqlSoapFault MessageEntry.name ["+me.getName()+"] code=["+me.getCode()+"]"); logger.error("ExecuteSqlSoapFault MessageEntry.message:"+me.getMessage()); logger.error("ExecuteSqlSoapFault MessageEntry.detail:"+me.getDetail()); logger.error("ExecuteSqlSoapFault ------------------- Composite Server SOAP Fault MessageEntry End -------------------"); } } */ String message = DeployUtil.constructMessage(DeployUtil.MessageType.ERROR.name(), "executeProcedure", "Resource", procedureName, targetServer) + "\nErrorMessage: " + CompositeLogger.getFaultMessage(e, e.getFaultInfo()); CompositeLogger.logException(e, message); throw new ApplicationException(message, e); } }