Examples of invoke()


Examples of org.apache.axis.client.async.AsyncCall.invoke()

      }
      try {
        mutex.acquire();
      } catch (Exception e) {}
      setAsyncStatus(ASYNC_RUNNING);
      asyncCall.invoke(msgContext,listener); // this MUST be non-blocking
    }

    public final Object waitForReturnValue()
      throws Throwable {
        return waitForReturnValue(Long.MAX_VALUE);
View Full Code Here

Examples of org.apache.axis.handlers.soap.SOAPService.invoke()

                    messageContext.setSOAPConstants(env.getSOAPConstants());
                }
                SOAPService service = messageContext.getService();

                Thread.currentThread().setContextClassLoader(classLoader);
                service.invoke(messageContext);

                responseMessage = messageContext.getResponseMessage();
            } catch (AxisFault fault) {
               
                 if(req.getMethod() == req.GET && req.getParameters().isEmpty()){
View Full Code Here

Examples of org.apache.axis.providers.java.RPCProvider.invoke()

            rpc.init();   // ??
            if (doWsdl)
                rpc.generateWSDL(msgContext);
            else
                rpc.invoke( msgContext );
            rpc.cleanup()// ??
        }
        catch( Exception e ) {
            category.error( "JWSProcessor fault", e );
            if ( !(e instanceof AxisFault) ) e = new AxisFault( e );
View Full Code Here

Examples of org.apache.axis.server.AxisServer.invoke()

        if (remoteService != null)
            serverContext.setTargetService(remoteService);

        // invoke the request
        try {
            targetServer.invoke(serverContext);
        } catch (AxisFault fault) {
            Message respMsg = serverContext.getResponseMessage();
            if (respMsg == null) {
                respMsg = new Message(fault);
                serverContext.setResponseMessage(respMsg);
View Full Code Here

Examples of org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher.invoke()

        requestDispatcher.invoke(msgContext);
        AxisService axisService = msgContext.getAxisService();
        if (axisService != null) {
            HTTPLocationBasedDispatcher httpLocationBasedDispatcher =
                    new HTTPLocationBasedDispatcher();
            httpLocationBasedDispatcher.invoke(msgContext);
            if (msgContext.getAxisOperation() == null) {
                RequestURIOperationDispatcher requestURIOperationDispatcher =
                        new RequestURIOperationDispatcher();
                requestURIOperationDispatcher.invoke(msgContext);
            }
View Full Code Here

Examples of org.apache.axis2.dispatchers.RequestURIBasedDispatcher.invoke()

    }

    private static void dispatchAndVerify(MessageContext msgContext) throws AxisFault {
        RequestURIBasedDispatcher requestDispatcher = new RequestURIBasedDispatcher();
        requestDispatcher.invoke(msgContext);
        AxisService axisService = msgContext.getAxisService();
        if (axisService != null) {
            HTTPLocationBasedDispatcher httpLocationBasedDispatcher =
                    new HTTPLocationBasedDispatcher();
            httpLocationBasedDispatcher.invoke(msgContext);
View Full Code Here

Examples of org.apache.axis2.dispatchers.RequestURIOperationDispatcher.invoke()

                    new HTTPLocationBasedDispatcher();
            httpLocationBasedDispatcher.invoke(msgContext);
            if (msgContext.getAxisOperation() == null) {
                RequestURIOperationDispatcher requestURIOperationDispatcher =
                        new RequestURIOperationDispatcher();
                requestURIOperationDispatcher.invoke(msgContext);
            }

            AxisOperation axisOperation;
            if ((axisOperation = msgContext.getAxisOperation()) != null) {
                AxisEndpoint axisEndpoint =
View Full Code Here

Examples of org.apache.axis2.dispatchers.SOAPActionBasedDispatcher.invoke()

        as.addOperation(operation2);

        messageContext.setSoapAction("urn:org.apache.axis2.dispatchers.test:operation1");

        SOAPActionBasedDispatcher soapActionDispatcher = new SOAPActionBasedDispatcher();
        soapActionDispatcher.invoke(messageContext);
        assertEquals(operation1, messageContext.getAxisOperation());
    }

    public void testEmptyAction() throws Exception {
        // We shouldn't be able to route on an emtpy-string action.
View Full Code Here

Examples of org.apache.axis2.engine.HTTPLocationBasedDispatcher.invoke()

            requestURIOperationDispatcher.invoke(msgContext);

            if (msgContext.getAxisOperation() == null) {
                HTTPLocationBasedDispatcher httpLocationBasedDispatcher =
                        new HTTPLocationBasedDispatcher();
                httpLocationBasedDispatcher.invoke(msgContext);
            }

            AxisOperation axisOperation;
            if ((axisOperation = msgContext.getAxisOperation()) != null) {
                AxisEndpoint axisEndpoint =
View Full Code Here

Examples of org.apache.axis2.engine.RequestURIBasedDispatcher.invoke()

    }

    private void dispatchAndVerify(MessageContext msgContext) throws AxisFault {
        RequestURIBasedDispatcher requestDispatcher = new RequestURIBasedDispatcher();
        requestDispatcher.invoke(msgContext);

        // check for the dispatching result
        if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) {
            throw new AxisFault("I can not find a service for this request to be serviced." +
                    " Check the WSDL and the request URI");
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.