Package org.codehaus.xfire.client

Examples of org.codehaus.xfire.client.XFireProxyFactory.create()


       
        XFireProxyFactory serviceFactory = new XFireProxyFactory();
       
        try
        {
            BookService service = (BookService) serviceFactory.create(serviceModel, serviceURL);
            Client client = Client.getInstance(service);
            client.addOutHandler(new OutHeaderHandler());
            // disable timeout
            client.setProperty(CommonsHttpMessageSender.HTTP_TIMEOUT, "0");
           
View Full Code Here


    }
   
    public void testClient() throws Exception
    {
        XFireProxyFactory factory = new XFireProxyFactory(getXFire());
        EchoOverload echo = (EchoOverload) factory.create(service, "xfire.local://EchoOverload");

        assertEquals("yo", echo.echo("yo"));
        assertEquals("yoyo", echo.echo("yo", "yo"));
    }
}
View Full Code Here

   
    public void testClient()
        throws Exception
    {
        XFireProxyFactory xpf = new XFireProxyFactory(getXFire());
        Echo echo = (Echo) xpf.create(service, "xfire.local://Echo");
       
        assertEquals("hi", echo.echo("hi"));
    }

    public void testEchoWSDL()
View Full Code Here

    public void testClient()
        throws Exception
    {
        XFireProxyFactory xpf = new XFireProxyFactory();
        PictureService picClient = (PictureService) xpf.create(service, "http://localhost:8081/PictureService");
       
        Client client = ((XFireProxy) Proxy.getInvocationHandler(picClient)).getClient();
        client.setProperty(SoapConstants.MTOM_ENABLED, "true");
       
        EchoPicture req = new EchoPicture();
View Full Code Here

       
        getServiceRegistry().register(service);
       
        // Create the client
        XFireProxyFactory pFactory = new XFireProxyFactory(getXFire());
        echo = (Echo) pFactory.create(service, "xfire.local://Echo");
       
        client = ((XFireProxy) Proxy.getInvocationHandler(echo)).getClient();
        client.addInHandler(wsIn);
        client.addInHandler(new DOMInHandler());
        client.addOutHandler(wsOut);
View Full Code Here

    }
   
    public void testClient() throws Exception
    {
        XFireProxyFactory factory = new XFireProxyFactory(getXFire());
        EchoWithFault echo = (EchoWithFault) factory.create(service, "xfire.local://EchoWithFault");
       
        try
        {
            echo.echo("yo");
            fail("Should have thrown custom fault.");
View Full Code Here

                client.getService().setProperty(JbiChannel.JBI_ENDPOINT, endpoint);
            }
            client.getService().setProperty(JbiChannel.JBI_SECURITY_PROPAGATATION,
                    Boolean.valueOf(propagateSecurityContext));
            XFireProxyFactory xpf = new XFireProxyFactory(xfire);
            proxy = xpf.create(client);
        }
        return proxy;
    }
   
    public Definition getDescription() throws Exception {
View Full Code Here

            }
            if (endpoint != null) {
                client.getService().setProperty(JbiChannel.JBI_ENDPOINT, endpoint);
            }
            XFireProxyFactory xpf = new XFireProxyFactory(xfire);
            proxy = xpf.create(client);
        }
        return proxy;
    }
   
    public Definition getDescription() throws Exception {
View Full Code Here

            if (endpoint != null) {
                client.getService().setProperty(JbiChannel.JBI_ENDPOINT, endpoint);
            }
            client.getService().setProperty(JbiChannel.JBI_SECURITY_PROPAGATATION, Boolean.valueOf(propagateSecurityContext));
            XFireProxyFactory xpf = new XFireProxyFactory(xfire);
            proxy = xpf.create(client);
        }
        return proxy;
    }
   
    public Definition getDescription() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.