Package org.apache.axis.transport.local

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


    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.setScopedProperty(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

        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

    service.addOption("className", "test.encoding.TestArrayListConversions");
    service.addOption("methodName", "*");
   
    server.deployService(SERVICE_NAME, service);
   
    client = new ServiceClient(new LocalTransport(server));
  }
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.setOption("className", "test.soap12.Echo");
        service.setOption("allowedMethods", "*");
        service.setOption("use", Use.ENCODED);
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(boolean deploy) throws Exception {
        super.setUp();
        config = new BasicServerConfig();
        server = new AxisServer(config);
        transport = new LocalTransport(server);
       
        if (deploy)
            deploy();
    }
View Full Code Here

        service.setOption("className", "test.inheritance.Child");
        service.setOption("allowedMethods", "*");
        config.deployService("inheritanceTest", service);

        server = new AxisServer(config);
        transport = new LocalTransport(server);
        transport.setRemoteService("inheritanceTest");
    }
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.setOption("className", "test.encoding.TestArrayListConversions");
            service.setOption("allowedMethods", "*");
 
View Full Code Here

        // correctly, even without the xsi:type attribute, because
        // we set the return type manually.
       
        Service S_service = new Service();
        Call call = (Call) S_service.createCall();
        call.setTransport(new LocalTransport(server));
        call.setReturnType(XMLType.XSD_DOUBLE);
       
        Object result = call.invoke("TestService",
                                    "serviceMethod",
                                    new Object [] {});
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.