Package org.apache.axis.providers.java

Examples of org.apache.axis.providers.java.RPCProvider


    /**
     * Test a simple method that returns a field from the message context
     */
    public void testMessageContextImplicit() throws Exception {
        // Register the targetService service
        SOAPService tgtSvc = new SOAPService(new RPCProvider());
        tgtSvc.setOption("className", "test.RPCDispatch.Service");
        tgtSvc.setOption("allowedMethods", "targetServiceImplicit");
        provider.deployService(new QName(null, SOAPAction), tgtSvc);
        ServiceDesc serviceDesc = tgtSvc.getServiceDescription();
        serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
View Full Code Here


    /**
     * Test a simple method that accepts and returns a null
     */
    public void testNull() throws Exception {
        // Register the echoInt service
        SOAPService echoInt = new SOAPService(new RPCProvider());
        echoInt.setOption("className", "test.RPCDispatch.Service");
        echoInt.setOption("allowedMethods", "echoInt");
        provider.deployService(new QName(null, SOAPAction), echoInt);
        ServiceDesc serviceDesc = echoInt.getServiceDescription();
        serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
View Full Code Here

    /**
     * Test faults
     */
    public void testSimpleFault() throws Exception {
        // Register the reverseData service
        SOAPService simpleFault = new SOAPService(new RPCProvider());
        simpleFault.setOption("className", "test.RPCDispatch.Service");
        simpleFault.setOption("allowedMethods", "simpleFault");
        provider.deployService(new QName(null, SOAPAction), simpleFault);
        ServiceDesc serviceDesc = simpleFault.getServiceDescription();
        serviceDesc.loadServiceDescByIntrospection(test.RPCDispatch.Service.class,
View Full Code Here

    public void setUp() throws Exception {
        engine.init();
        localTransport.setUrl(localURL);
       
        SOAPService service = new SOAPService(new TestHandler(),
                                              new RPCProvider(),
                                              null);
       
        service.setOption("className", TestService.class.getName());
        service.setOption("allowedMethods", "*");
       
View Full Code Here

        // Deploy a service which contains an option that we expect to be
        // available by asking the MessageContext in the service method (see
        // PropertyHandler.java).

        RPCProvider provider = new RPCProvider();
        service = new SOAPService(serverHandler, provider, null);
        service.setOption("className", PropertyHandler.class.getName());
        service.setOption("allowedMethods", "*");

        // Here's the interesting property.
View Full Code Here

    public TestSerializedRPC(String name) throws Exception {
        super(name);
        engine.init();

        // Register the reverseString service
        SOAPService reverse = new SOAPService(new RPCProvider());
        reverse.setOption("className", "test.RPCDispatch.Service");
        reverse.setOption("allowedMethods", "*");
        provider.deployService(SOAPAction, reverse);
       
        // And deploy the type mapping
View Full Code Here

        // Build java service descriptor
        final JavaServiceDescBuilder javaServiceDescBuilder = new JavaServiceDescBuilder(serviceInfo, classLoader);
        final JavaServiceDesc serviceDesc = javaServiceDescBuilder.createServiceDesc();

        // Create service
        final RPCProvider provider = new EjbRpcProvider(beanContext, createHandlerInfos(port.getHandlerChains()));
        final SOAPService service = new SOAPService(null, provider, null);
        service.setServiceDescription(serviceDesc);

        // Set class name
        service.setOption("className", beanContext.getServiceEndpointInterface().getName());
View Full Code Here

        // Build java service descriptor
        final JavaServiceDescBuilder javaServiceDescBuilder = new JavaServiceDescBuilder(serviceInfo, classLoader);
        final JavaServiceDesc serviceDesc = javaServiceDescBuilder.createServiceDesc();

        // Create service
        final RPCProvider provider = new PojoProvider();
        final SOAPService service = new SOAPService(null, provider, null);
        service.setServiceDescription(serviceDesc);

        // Set class name
        service.setOption("className", target.getName());
View Full Code Here

        serviceDesc.getOperations();
        final ReadOnlyServiceDesc sd = new ReadOnlyServiceDesc(serviceDesc);

        final Class pojoClass = cl.loadClass("org.apache.openejb.server.axis.EchoBean");

        final RPCProvider provider = new PojoProvider();
        final SOAPService service = new SOAPService(null, provider, null);
        service.setServiceDescription(sd);
        service.setOption("className", "org.apache.openejb.server.axis.EchoBean");
        final URL wsdlURL = new URL("http://fake/echo.wsdl");
        final URI location = new URI(serviceDesc.getEndpointURL());
View Full Code Here

        //user can specify them in the server-config.wsdd as parameters to the service
        //parameter names should be in  ignoreAction1, ignoreAction2 format.


        if (isIgnorableMessage(msgContext)) {
            RPCProvider rpcProvider = new RPCProvider();
            rpcProvider.invoke(msgContext);
        } else {
            IStorageManager storageManager = SandeshaContext.init(client);
            storageManager.init();

            RMMessageContext rmMessageContext = new RMMessageContext();
View Full Code Here

TOP

Related Classes of org.apache.axis.providers.java.RPCProvider

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.