Package org.apache.axis.transport.local

Examples of org.apache.axis.transport.local.LocalTransport


        // Set a property on the Call which we expect to be available via
        // the MessageContext in the client-side handler.
        call.setProperty(PROP_NAME, CLIENT_VALUE);

        LocalTransport transport = new LocalTransport(server);
        transport.setRemoteService("service");
        call.setTransport(transport);

        // Make the call.
        String result = (String)call.invoke("service",
                                            "testScopedProperty",
View Full Code Here


    public void testMessageContextOverride() throws Exception {
        // Only the server side matters on this one, so don't bother with
        // special client config.
        Call call = new Call(new Service());

        LocalTransport transport = new LocalTransport(server);
        transport.setRemoteService("service");
        call.setTransport(transport);

        // Make the call.
        String result = (String)call.invoke("service",
                                            "testOverrideProperty",
View Full Code Here

        // Set a property on the Call which we expect to be available via
        // the MessageContext in the client-side handler.
        call.setProperty(PROP_NAME, CLIENT_VALUE);

        LocalTransport transport = new LocalTransport(server);
        transport.setRemoteService("service");
        call.setTransport(transport);

        // First call should get the value from the Call object.
        call.invoke("testOverrideProperty", new Object [] { });
        assertEquals("Client-side scoped property from Call wasn't correct",
View Full Code Here

        SimpleProvider config = new BasicServerConfig();
        config.deployService("MessageService", service);

        AxisServer server = new AxisServer(config);

        transport = new LocalTransport(server);
        transport.setRemoteService("MessageService");
    }
View Full Code Here

    protected void setUp() throws Exception {

        server = new AxisServer(new XMLStringProvider(wsdd));

        LocalTransport transport;

        transport = new LocalTransport(server);
        transport.setRemoteService(SERVICE_NAME);
       
        WSDDProvider.registerProvider( PROVIDERQNAME, new WSDDDummyProvider());
    }
View Full Code Here

     */
    protected void setUp(boolean deploy) throws Exception {
        super.setUp();
        config = new BasicServerConfig();
        server = new AxisServer(config);
        transport = new LocalTransport(server);
       
        if (deploy)
            deploy();
    }
View Full Code Here

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

            SOAPService service = new SOAPService(new RPCProvider());
            service.setEngine(server);

            service.setOption("className", "test.encoding.TestArrayListConversions");
View Full Code Here

    private RPCElement rpc(String method, Object[] params)
        throws AxisFault, SAXException
    {
        String SERVICE_NAME = "echoservice";
        LocalTransport transport = new LocalTransport(server);

        SOAPService service = new SOAPService(new RPCProvider());
        service.setEngine(server);
        service.setOption("className", "test.soap12.Echo");
        service.setOption("allowedMethods", "*");
 
View Full Code Here

        SimpleProvider config = new SimpleProvider(defaultConfig);
        config.deployService("outParamsTest", service);
        provider.deployService("outParamsTest", service);

        // Make sure the local transport uses the server we just configured
        client.setTransport(new LocalTransport(server));

        Message msg = new Message(message, false);
        SOAPEnvelope env = msg.getSOAPEnvelope();

        // invoke
View Full Code Here

        SOAPService service = new SOAPService(h);
        provider.deployService(serviceURN, service);

        // Make sure the local transport uses the server we just configured
        client.setTransport(new LocalTransport(server));

        // Create the message context
        MessageContext msgContext = new MessageContext(server);

        // Construct the soap request
View Full Code Here

TOP

Related Classes of org.apache.axis.transport.local.LocalTransport

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.