Package org.apache.axis.configuration

Examples of org.apache.axis.configuration.SimpleProvider


        return true;
    }

    protected void setUp() throws Exception {
        try {
            SimpleProvider provider = new SimpleProvider();
            server = new AxisServer(provider);
            transport = new LocalTransport(server);

            SOAPService service = new SOAPService(new RPCProvider());
            ServiceDesc desc = service.getInitializedServiceDesc(null);
            desc.setDefaultNamespace(SERVICE_NAME);

            service.setOption("className", "test.encoding.TestArrayListConversions");
            service.setOption("allowedMethods", "*");

            provider.deployService(SERVICE_NAME, service);
        } catch (Exception exp) {
            exp.printStackTrace();
        }

    }
View Full Code Here


        symbol = args[0] ;

        EngineConfiguration defaultConfig =
            (new DefaultEngineConfigurationFactory()).
            getClientEngineConfig();
        SimpleProvider config = new SimpleProvider(defaultConfig);
        SimpleTargetedChain c = new SimpleTargetedChain(new TCPSender());
        config.deployTransport("tcp", c);

        Service service = new Service(config);
        Call call = (Call)service.createCall();
       
        call.setTransport(new TCPTransport());
View Full Code Here

        service.setOption("className", "test.session.TestSimpleSession");
        service.setOption("allowedMethods", "counter");

        EngineConfiguration defaultConfig =
            (new DefaultEngineConfigurationFactory()).getServerEngineConfig();
        SimpleProvider config = new SimpleProvider(defaultConfig);
        config.deployService("sessionTest", service);

        AxisServer server = new AxisServer(config);

        // Set up the client side (using the WSDD above)
        Service svc = new Service(clientProvider);
View Full Code Here

            String   symbol = "XXX"; // args[0] ;

            EngineConfiguration defaultConfig =
                (new DefaultEngineConfigurationFactory()).
                getClientEngineConfig();
            SimpleProvider config = new SimpleProvider(defaultConfig);
            SimpleTargetedChain c = new SimpleTargetedChain(new TCPSender());
            config.deployTransport("tcp", c);

            Service service = new Service(config);

            Call     call    = (Call) service.createCall();
View Full Code Here

    private void buildDelegateService() {
        TypeMappingRegistryImpl typeMappingRegistry = new TypeMappingRegistryImpl();
        typeMappingRegistry.doRegisterFromVersion("1.3");

        SimpleProvider engineConfiguration = new SimpleProvider(typeMappingRegistry);
        engineConfiguration.deployTransport("http", new SimpleTargetedChain(new HTTPSender()));

        GeronimoAxisClient engine = new GeronimoAxisClient(engineConfiguration, portToImplementationMap);

        delegate = new Service(engineConfiguration, engine);
    }
View Full Code Here

    }


    protected void initSimpleAxisServer() {
        setSas(new SimpleAxisServer());
        getSas().setMyConfig(new SimpleProvider());
    }
View Full Code Here

        this.seiClassNameToFactoryMap = seiClassNameToFactoryMap;

        final TypeMappingRegistryImpl typeMappingRegistry = new TypeMappingRegistryImpl();
        typeMappingRegistry.doRegisterFromVersion("1.3");

        final SimpleProvider engineConfiguration = new SimpleProvider(typeMappingRegistry);
        engineConfiguration.deployTransport("http", new SimpleTargetedChain(new HTTPSender()));

        final AxisClientImpl engine = new AxisClientImpl(engineConfiguration, this.portToImplementationMap);

        delegate = new Service(engineConfiguration, engine);
    }
View Full Code Here

        return true;
    }

    protected void setUp() throws Exception {
        try {
            SimpleProvider provider = new SimpleProvider();
            server = new AxisServer(provider);
            transport = new LocalTransport(server);

            SOAPService service = new SOAPService(new RPCProvider());
            ServiceDesc desc = service.getInitializedServiceDesc(null);
            desc.setDefaultNamespace(SERVICE_NAME);

            service.setOption("className", "test.encoding.TestArrayListConversions");
            service.setOption("allowedMethods", "*");

            provider.deployService(SERVICE_NAME, service);
        } catch (Exception exp) {
            exp.printStackTrace();
        }

    }
View Full Code Here

            String   symbol = "XXX"; // args[0] ;

            EngineConfiguration defaultConfig =
                (new DefaultEngineConfigurationFactory()).
                getClientEngineConfig();
            SimpleProvider config = new SimpleProvider(defaultConfig);
            SimpleTargetedChain c = new SimpleTargetedChain(new TCPSender());
            config.deployTransport("tcp", c);

            Service service = new Service(config);

            Call     call    = (Call) service.createCall();
View Full Code Here

    private String namespace = "http://xml.apache.org/axis/TestBody";

    private String request = "<?xml version=\"1.0\"?>\n" + "<soap:Envelope " + "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" " + "xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">" + "<soap:Body>\n" + "<method xmlns=\"" + namespace + "\">\n" + "<arg>5</arg>" + "</method>\n" + "</soap:Body>\n" + "</soap:Envelope>\n";

    public void testBodyNamespace() throws Exception {
        SimpleProvider provider = new SimpleProvider();

        // register the service with the engine
        SOAPService target = new SOAPService(new RPCProvider());
        provider.deployService(new QName(null,namespace), target);

        // setup
        AxisEngine engine = new AxisServer(provider);
        engine.init();
View Full Code Here

TOP

Related Classes of org.apache.axis.configuration.SimpleProvider

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.