/** * return only the parameters for explicitly set for this operation * (not including inherited ones), where each parameter is an XML fragment * representing the "parameter" element * * @param serviceName * @param operationName * @return declared operation params * @throws AxisFault */ public OMElement[] getDeclaredOperationParameters(String serviceName, String operationName) throws AxisFault { AxisService axisService = getAxisConfig().getService(serviceName); AxisOperation op = axisService.getOperation(new QName(operationName)); if (op == null) { throw new AxisFault("Invalid operation : " + operationName + " not available in service : " + serviceName); } ArrayList allParameter = new ArrayList(); ArrayList opParams = op.getParameters(); for (int i = 0; i < opParams.size(); i++) { Parameter parameter = (Parameter) opParams.get(i); OMElement element = parameter.getParameterElement(); if (element != null) { allParameter.add(element); } } return (OMElement[]) allParameter.toArray(new OMElement[allParameter.size()]); }
public void serviceUpdate(AxisEvent axisEvent, AxisService axisService) { try { if (axisEvent.equals(AxisEvent.SERVICE_DEPLOY) && axisService.getName().equals("ServiceAdmin")){ AxisOperation operation = axisService.getOperation(new QName("listServiceGroups")); ArrayList<Parameter> params = operation.getParameters(); for(Parameter param: params) { operation.removeParameter(param); } Parameter authAction = new Parameter("AuthorizationAction", "/permission/admin/manage/monitor/service"); operation.addParameter(authAction); } } catch (AxisFault axisFault) { axisFault.printStackTrace(); } }
ArrayList opParams = op.getParameters();
ArrayList parameters = operation.getParameters();
List operationParameterList = operation.getParameters(); serializeParameterList(operationParameterList, operationEle, fac, ns);
operation.setName(axisOperation.getName()); Iterator<Parameter> parameters = axisOperation.getParameters().iterator();
operation.setName(axisOperation.getName()); Iterator<Parameter> parameters = axisOperation.getParameters().iterator();