Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisOperation.addParameter()


                                                            flag.trim());
        service.addParameter(parameter);

        for (Iterator iterator1 = service.getOperations(); iterator1.hasNext();) {
            AxisOperation axisOperation = (AxisOperation) iterator1.next();
            axisOperation.
                    addParameter(ParameterUtil.createParameter(Constants.Configuration.ENABLE_MTOM,
                                                               (String) parameter.getValue()));
        }

        try {
View Full Code Here


        }
        if (!found) {
            Parameter parameter =
                    ParameterUtil.createParameter(Constants.Configuration.ENABLE_MTOM, flag.trim());
            operation.addParameter(parameter);
        }

        Parameter parameter = operation.getParameter(Constants.Configuration.ENABLE_MTOM);
        //At this point parameter will not be null;
View Full Code Here

        } catch (XMLStreamException e) {
            handleException("Cannot create OMElement from parameter: " + parameterStr, e);
        }

        Parameter parameter = ParameterUtil.createParameter(paramEle);
        axisOp.addParameter(parameter);

        try {
            opm.updateOperationParameter(axisOp, parameter);
        } catch (Exception e) {
            String msg = "Cannot persist operation parameter for operation " + axisOp.getName();
View Full Code Here

                    for (int i = 0; i < operation_para.size(); i++) {
                        Parameter parameter = (Parameter) operation_para.get(i);
                        String para = req.getParameter(op_name + "_" + parameter.getName());

                        axisOperation.addParameter(new Parameter(parameter.getName(), para));
                    }
                }
            }
            res.setContentType("text/html");
            req.setAttribute("status", "Parameters Changed Successfully.");
View Full Code Here

                Method[] methods = ImplClass.getMethods();

                for (int i = 0; i < methods.length; i++) {
                    if (methods[i].getName().equals(methodName)) {
                        method = methods[i];
                        op.addParameter("myMethod", method);
                        break;
                    }
                }
                if (method == null) {
                    throw new AxisFault("No such method '" + methodName +
View Full Code Here

        axisOperation.setMessageReceiver(new RPCInOutMessageReceiver());
        service.addOperation(axisOperation);
        Parameter parameter = new ParameterImpl();
        parameter.setName(RPCInOutMessageReceiver.RPCMETHOD_PROPERTY);
        parameter.setValue(method);
        axisOperation.addParameter(parameter);
        service.setClassLoader(Thread.currentThread().getContextClassLoader());
        LocalTransportReceiver.CONFIG_CONTEXT.getAxisConfiguration()
                .addService(service);
    }
View Full Code Here

            AxisService service = new AxisService("Service1");
            reg.addService(service);

            AxisOperation opertion = new InOutAxisOperation();
            opertion.setParent(service);
            opertion.addParameter(para);
            fail("This should fails with Parmter is locked can not overide");


        } catch (AxisFault axisFault) {
View Full Code Here

            reg.addService(service);
            service.addParameter(para);

            AxisOperation opertion = new InOutAxisOperation();
            opertion.setParent(service);
            opertion.addParameter(para);
            fail("This should fails with Parmter is locked can not overide");
        } catch (AxisFault axisFault) {

        }
    }
View Full Code Here

                for(Parameter param: params) {
                    operation.removeParameter(param);
                }
                Parameter authAction = new Parameter("AuthorizationAction",
                        "/permission/admin/manage/monitor/service");
                operation.addParameter(authAction);
            }
        } catch (AxisFault e) {
            log.error("Cannot add AuthorizationAction parameter to ServiceAdmin", e);
        }
    }
View Full Code Here

                    if (method1.isBridge()) {
                        continue;
                    }
                    if (method1.getName().equals(methodName)) {
                        method = method1;
                        op.addParameter("myMethod", method);
                        break;
                    }
                }
                if (method == null) {
                    throw new AxisFault("No such method '" + methodName +
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.