Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisOperation


            // This logic mimics the code in SOAPMessageBodyBasedOperationDispatcher.findOperation.  We will look for
            // the AxisOperation corresponding to the body element name.  Note that we are searching for the AxisOperation instead
            // of searching through the OperationDescriptions so that we can use the getOperationByMessageElementQName
            // for the Doc/Lit/Bare case.  Once we have the AxisOperation, we'll use that to find the Operation Description.
            AxisService axisService = endpointInterfaceDesc.getEndpointDescription().getAxisService();
            AxisOperation axisOperation = null;
   
            // Doc/Lit/Wrapped and RPC, the operation name is the first body element qname
            axisOperation = axisService.getOperation(new QName(bodyElementQName.getLocalPart()));
           
            if (axisOperation == null) {
                // Doc/Lit/Bare, the first body element qname is the element name contained in the wsdl:message part
                axisOperation = axisService.getOperationByMessageElementQName(bodyElementQName);
            }
           
            if (axisOperation == null) {
                // Not sure why we wouldn't have found the operation above using just the localPart rather than the full QName used here,
                // but this is what SOAPMessageBodyBasedOperationDispatcher.findOperation does.
                axisOperation = axisService.getOperation(bodyElementQName);
            }
   
            // If we found an axis operation, then find the operation description that corresponds to it
            if (axisOperation != null) {
                OperationDescription allOpDescs[] = endpointInterfaceDesc.getDispatchableOperations();
                for (OperationDescription checkOpDesc : allOpDescs ) {
                    AxisOperation checkAxisOperation = checkOpDesc.getAxisOperation();
                    if (checkAxisOperation == axisOperation) {
                        operationDesc = checkOpDesc;
                        break;
                    }
                }
View Full Code Here


        }
        if (!(envelope.getBuilder() instanceof StAXOMBuilder)) {
            return;
        }

        AxisOperation axisOp = mc.getAxisOperation();
        if (axisOp == null) {
            return;
        }

        ParserInputStreamCustomBuilder pacb = new ParserInputStreamCustomBuilder(null);
View Full Code Here

            return null;
        }
        if (axisService != null) {
            Iterator<AxisOperation> operations = axisService.getOperations();
            while (operations.hasNext()) {
                AxisOperation axisOperation = operations.next();
                if (axisOperation.getMessageReceiver() == null) {
                    axisOperation.setMessageReceiver(new JAXWSMessageReceiver());
                }
            }
            axisService.setElementFormDefault(false);
            axisService.setFileName(serviceLocation);
            axisService.setClassLoader(classLoader);
View Full Code Here

        Parameter endpointDescParam =
                service.getParameter(EndpointDescription.AXIS_SERVICE_PARAMETER);
        if (endpointDescParam == null) {
            throw new RuntimeException(Messages.getMessage("JAXWSMessageReceiverNoServiceClass"));
        }
        AxisOperation operation = axisRequestMsgCtx.getAxisOperation();
        String mep = operation.getMessageExchangePattern();
        if (log.isDebugEnabled()) {
            log.debug("MEP: " + mep);
        }

        try {
View Full Code Here

    public void initDispatcher() {
    }

    public InvocationResponse invoke(MessageContext msgctx) throws AxisFault {
        AxisService axisService = msgctx.getAxisService();
        AxisOperation axisOperation = msgctx.getAxisOperation();
       
        if (log.isDebugEnabled()) {
            log.debug("JAXWS MustUnderstandValidationDispatcher.invoke on AxisService "
                      + axisService
                      + "; AxisOperation " + axisOperation);
View Full Code Here

     * @see org.apache.axis2.engine.AbstractDispatcher#findOperation(org.apache.axis2.description.AxisService, org.apache.axis2.context.MessageContext)
     */
    @Override
    public AxisOperation findOperation(AxisService service, MessageContext messageContext)
            throws AxisFault {
        AxisOperation theOperation = null;
        if (log.isDebugEnabled()) {
            log.debug("findOperation service = " + service + "; messagectx: " + messageContext);
        }
       
        // If there's an AxisService, then look for the specially named operation and return it
View Full Code Here

                // examine SEI methods
                seiMethodHeaders = new ArrayList();
                Iterator operationIterator = axisService.getOperations();
                if (operationIterator != null) {
                    while (operationIterator.hasNext()) {
                        AxisOperation operation = (AxisOperation) operationIterator.next();
                        ArrayList list = getSEIMethodHeaderParameterList(operation);
                        if (log.isDebugEnabled()) {
                            log.debug("Adding headers from operation " + operation + "; headers = "
                                      + list);
                        }
View Full Code Here

        }
        return null;
    }
   
    private AxisOperation findRealOperationAction(MessageContext msgContext) {
        AxisOperation axisOperation = null;
        QName firstBodyElement = getFirstBodyElement(msgContext.getEnvelope());
        if (firstBodyElement != null) {
            AxisService service = msgContext.getAxisService();
            axisOperation = service.getOperationByMessageElementQName(firstBodyElement);
        }
View Full Code Here

        }
        return axisOperation;           
    }
   
    public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
        AxisOperation op = msgContext.getAxisOperation();      
        if (!msgContext.isServerSide() && op != null && isAnonymousOperation(op)) {
            op = findRealOperationAction(msgContext);        
            if (op != null) {
                msgContext.setAxisOperation(op);
                if (LOG.isDebugEnabled()) {
View Full Code Here

    /*
    * Determine if this is a one-way invocation or not.
    */
    public static boolean isOneWay(org.apache.axis2.context.MessageContext mc) {
        if (mc != null) {
            AxisOperation op = mc.getAxisOperation();
            String mep = op.getMessageExchangePattern();

            if (mep.equals(WSDL2Constants.MEP_URI_ROBUST_IN_ONLY) ||
                    mep.equals(WSDL2Constants.MEP_URI_IN_ONLY) ||
                    mep.equals(WSDL2Constants.MEP_URI_ROBUST_IN_ONLY) ||
                    mep.equals(WSDL2Constants.MEP_URI_IN_ONLY)||
View Full Code Here

TOP

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

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.