Package org.apache.axis2.description

Examples of org.apache.axis2.description.OperationDescription


    public ContextHierarchyTest(String arg0) {
        super(arg0);
    }

    protected void setUp() throws Exception {
        operationDescription = new OperationDescription(new QName("Temp"));
        serviceDescription = new ServiceDescription(new QName("Temp"));
        axisConfiguration = new AxisConfigurationImpl();
        serviceDescription.addOperation(operationDescription);
        axisConfiguration.addService(serviceDescription);
    }
View Full Code Here


        ModuleDescription module = ac.getModule(new QName("module1"));
        assertNotNull(module);
        ac.engageModule(new QName("module1"));
        ServiceDescription service = ac.getService(new QName("service2"));
        assertNotNull(service);
        OperationDescription moduleOperation = service.getOperation(new QName("creatSeq"));
        assertNotNull(moduleOperation);
    }
View Full Code Here

                msgctx.setServiceContext(axisService.findServiceContext(msgctx));
            }
        }

        if (msgctx.getServiceContext() != null && msgctx.getOperationContext() == null) {
            OperationDescription axisOperation = findOperation(msgctx.getServiceContext().getServiceConfig(),msgctx);
            if(axisOperation != null){
                OperationContext operationContext = axisOperation.findOperationContext(msgctx,msgctx.getServiceContext());
                msgctx.setOperationContext(operationContext);
            }
        }

    }
View Full Code Here

                if (operationsList.size() > 0) {
                    temp += "Available operations <ul>";
                    for (Iterator iterator1 = operationsList.iterator();
                        iterator1.hasNext();
                        ) {
                        OperationDescription axisOperation =
                            (OperationDescription) iterator1.next();
                        temp += "<li>"
                            + axisOperation.getName().getLocalPart()
                            + "</li>";
                    }
                    temp += "</ul>";
                } else {
                    temp += "No operations speficied for this service";
View Full Code Here

    public OperationDescription findOperation(
        ServiceDescription service,
        MessageContext messageContext)
        throws AxisFault {
        if (operatoinName != null) {
            OperationDescription axisOp = service.getOperation(operatoinName);
            return axisOp;
        }
        return null;

    }
View Full Code Here

        MessageContext messageContext)
        throws AxisFault {
        OMElement bodyFirstChild = messageContext.getEnvelope().getBody().getFirstElement();
        operatoinName = new QName(bodyFirstChild.getLocalName());

        OperationDescription axisOp = service.getOperation(operatoinName);
        return axisOp;
    }
View Full Code Here

    public MyInOutMEPClient() throws AxisFault {
        super(assumeServiceContext(null));
    }

    public SOAPEnvelope invokeBlockingWithEnvelopeOut(String axisop, OMElement toSend) throws AxisFault {
        OperationDescription axisConfig =
            serviceContext.getServiceConfig().getOperation(new QName(axisop));
         if (axisConfig == null) {
            axisConfig = new OperationDescription(new QName(axisop));
            axisConfig.setRemainingPhasesInFlow(operationTemplate.getRemainingPhasesInFlow());
            axisConfig.setPhasesOutFlow(operationTemplate.getPhasesOutFlow());
            axisConfig.setPhasesInFaultFlow(operationTemplate.getPhasesInFaultFlow());
            axisConfig.setPhasesOutFaultFlow(operationTemplate.getPhasesOutFaultFlow());
            serviceContext.getServiceConfig().addOperation(axisConfig);
        }

//        if (axisConfig == null) {
//            axisConfig = new OperationDescription(new QName(axisop));
View Full Code Here

    protected void setUp() throws Exception {
        UtilServer.start();

        ServiceDescription service = new ServiceDescription(serviceName);
        OperationDescription operation = new OperationDescription(
                operationName);
        operation.setMessageReceiver(new MessageReceiver() {
            public void receive(MessageContext messgeCtx) throws AxisFault {
                envelope = messgeCtx.getEnvelope();
                TestingUtils.campareWithCreatedOMElement(
                        envelope.getBody().getFirstElement());
            }
View Full Code Here

        service
                .addParameter(new ParameterImpl(
                        AbstractMessageReceiver.SERVICE_CLASS, EchoSwA.class
                                .getName()));

        OperationDescription axisOp = new OperationDescription(operationName);
        axisOp.setMessageReceiver(new RawXMLINOutMessageReceiver());
        axisOp.setStyle(WSDLService.STYLE_DOC);
        service.addOperation(axisOp);
        UtilServer.deployService(service);
        serviceContext = UtilServer.getConfigurationContext()
                .createServiceContext(service.getName());
View Full Code Here

    public ConfigurationContext getEngineContext() {
        return (ConfigurationContext) parent;
    }

    public OperationContext createOperationContext(QName name) {
        OperationDescription axisOp = serviceConfig.getOperation(name);
        return new OperationContext(axisOp, this);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.description.OperationDescription

Copyright © 2018 www.massapicom. 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.