Package org.codehaus.xfire.addressing

Examples of org.codehaus.xfire.addressing.AddressingOutHandler


   
    public void testInvokeWithAddressing()
        throws Exception
    {
        service.addInHandler(new AddressingInHandler());
        service.addOutHandler(new AddressingOutHandler());
        service.addFaultHandler(new AddressingOutHandler());

        Channel serverChannel = serverTrans.createChannel("Echo");

        DefaultTransportManager tm = new DefaultTransportManager();
        tm.initialize();
        tm.register(clientTrans);

        factory = new ObjectServiceFactory(tm) {

            protected OperationInfo addOperation(Service endpoint, Method method, String style)
            {
                OperationInfo op = super.addOperation(endpoint, method, style);
               
                new AddressingOperationInfo(op);
               
                return op;
            }
        };
        factory.addSoap11Transport(XMPPTransport.BINDING_ID);
       
        Service serviceModel = factory.create(Echo.class);
       
        Client client = new Client(clientTrans, serviceModel, id + "/Echo");
        client.addInHandler(new AddressingInHandler());
        client.addOutHandler(new AddressingOutHandler());
        client.addFaultHandler(new AddressingInHandler());
       
        OperationInfo op = serviceModel.getServiceInfo().getOperation("echo");
        Object[] response = client.invoke(op, new Object[] { "hello" });
View Full Code Here


        service = factory.create(TestWSAServiceImpl.class);
        service.addInHandler(new WSATestHandler(data));
        if (getXFire().getInHandlers().size() < 3)
        {
            ((DefaultXFire) getXFire()).addInHandler(new AddressingInHandler());
            ((DefaultXFire) getXFire()).addOutHandler(new AddressingOutHandler());
            ((DefaultXFire) getXFire()).addFaultHandler(new AddressingOutHandler());
        }

        getServiceRegistry().register(service);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.addressing.AddressingOutHandler

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.