Package org.apache.axis2.description

Examples of org.apache.axis2.description.OperationDescription


            OperationDescription opDesc,
            String axisOp) {
        if (opDesc == null) {
            //if the operation is not alrady define we will copy the
            //crated Phases from the templete operation to the this Operation
            opDesc = new OperationDescription(new QName(axisOp));
            opDesc.setRemainingPhasesInFlow(
                    operationTemplate.getRemainingPhasesInFlow());
            opDesc.setPhasesOutFlow(operationTemplate.getPhasesOutFlow());
            opDesc.setPhasesInFaultFlow(
                    operationTemplate.getPhasesInFaultFlow());
View Full Code Here


        }

        //we will assume a Service and operations
        QName assumedServiceName = new QName("AnonymousService");
        ServiceDescription axisService = new ServiceDescription(assumedServiceName);
        operationTemplate = new OperationDescription(new QName("TemplateOperation"));
//        ServiceGroupDescription serviceGroupDescription = new ServiceGroupDescription(sysContext.getAxisConfiguration());

        PhasesInfo info =((AxisConfigurationImpl)sysContext.getAxisConfiguration()).getPhasesinfo();
        //to set the operation flows
        if(info != null){
View Full Code Here

                throw new AxisFault(
                    Messages.getMessage("groovyUnableToLoad", implInfoParam.getValue().toString()));
            }

            //look at the method name. if available this should be a groovy method
            OperationDescription op =
                inMessage.getOperationContext().getAxisOperation();
            if (op == null) {
                throw new AxisFault(
                    Messages.getMessage("notFound", "Operation"));
            }
            String methodName = op.getName().getLocalPart();
            OMElement firstChild =
                (OMElement) inMessage.getEnvelope().getBody().getFirstChild();
            inMessage.getEnvelope().build();
            StringWriter writer = new StringWriter();
            firstChild.build();
View Full Code Here

     * @param opName
     * @param toSend
     * @throws AxisFault
     */
    public void send(String opName, OMElement toSend) throws AxisFault {
        OperationDescription axisOp = serviceContext.getServiceConfig()
                .getOperation(opName);
        if (axisOp == null) {
            axisOp = new OperationDescription(new QName(opName));
            serviceContext.getServiceConfig().addOperation(axisOp);
        }
        super.send(axisOp, prepareTheSOAPEnvelope(toSend));
    }
View Full Code Here

    //Initializing descriptions
    axisConfiguration = new AxisConfigurationImpl ();
    serviceGroupDescription = new ServiceGroupDescription (axisConfiguration);
    serviceGroupDescription.setServiceGroupName(SERVICE_GROUP_NAME);
    serviceDescription = new ServiceDescription (serviceDescQName);
    operationDescription = new OperationDescription (operationDescName);
   
    //Creating links
    axisConfiguration.addServiceGroup(serviceGroupDescription);
    axisConfiguration.addService(serviceDescription);
    serviceGroupDescription.addService(serviceDescription);
View Full Code Here

        ServiceContext sessionContext = sgc.getServiceContext("TempSC");
        MessageContext messageContext1 = this.getBasicMessageContext();

        messageContext1.setMessageID(
                UUIDGenerator.getUUID());
        OperationDescription axisOperation = new OperationDescription(
                new QName("test"));
        OperationContext operationContext1 = axisOperation.findOperationContext(
                messageContext1, sessionContext);

        MessageContext messageContext2 = this.getBasicMessageContext();
        messageContext2.setMessageID(
                UUIDGenerator.getUUID());
        messageContext2.getMessageInformationHeaders().setRelatesTo(
                new RelatesTo(messageContext1.getMessageID()));
        OperationContext operationContext2 = axisOperation.findOperationContext(
                messageContext2, sessionContext);
        assertEquals(operationContext1, operationContext2);
    }
View Full Code Here

    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

                throw new AxisFault(
                    Messages.getMessage("groovyUnableToLoad", implInfoParam.getValue().toString()));
            }

            //look at the method name. if available this should be a groovy method
            OperationDescription op =
                inMessage.getOperationContext().getAxisOperation();
            if (op == null) {
                throw new AxisFault(
                    Messages.getMessage("notFound", "Operation"));
            }
            String methodName = op.getName().getLocalPart();
            OMElement firstChild =
                (OMElement) inMessage.getEnvelope().getBody().getFirstChild();
            inMessage.getEnvelope().build();
            StringWriter writer = new StringWriter();
            firstChild.build();
View Full Code Here

            requestContext.getEnvelope().serialize(omOutput);
            omOutput.flush();

            System.out.println();
            QName opName = new QName("urn:GoogleSearch", "doGoogleSearch");
            OperationDescription opdesc = new OperationDescription(opName);
            call.invokeNonBlocking(opdesc, requestContext, new ClientCallbackHandler());
        } catch (AxisFault e1) {
            e1.printStackTrace();
        } catch (XMLStreamException e) {
            e.printStackTrace();
View Full Code Here

        public void testEchoXMLCompleteASync() throws Exception {

            ConfigurationContext configContext = createClientConfigurationContext();
            ServiceDescription service = new ServiceDescription(serviceName);
            OperationDescription operation = new OperationDescription(operationName);
            operation.setMessageReciever(new MessageReceiver() {
                public void recieve(MessageContext messgeCtx) throws AxisFault {
                    envelope = messgeCtx.getEnvelope();
                }
            });
            service.addOperation(operation);
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.