Examples of BeanInvoker


Examples of org.codehaus.xfire.service.invoker.BeanInvoker

    extends AbstractXFireAegisTest
{
    public void testInterface() throws Exception
    {
        Service service = getServiceFactory().create(IMyService.class);
        service.setInvoker(new BeanInvoker(new MyService()));
        getServiceRegistry().register(service);
        service.setProperty(IMyObject.class.getName() + ".implementation", MyObject.class.getName());
       
        IMyService client = (IMyService)
            new XFireProxyFactory(getXFire()).create(service, "xfire.local://IMyService");
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

        AnnotationServiceFactory asf = new AnnotationServiceFactory(new Jsr181WebAnnotations(),
                                                                    getXFire().getTransportManager(),
                                                                    new AegisBindingProvider(new JaxbTypeRegistry()));
        service = asf.create(SendMessageImpl.class);
        server = new SendMessageImpl();
        service.setInvoker(new BeanInvoker(server));
       
        getServiceRegistry().register(service);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

    {
        ObjectServiceFactory osf = (ObjectServiceFactory) getServiceFactory();
        DefaultWSDLBuilderFactory factory = (DefaultWSDLBuilderFactory) osf.getWsdlBuilderFactory();

        Service service = getServiceFactory().create(Echo.class);
        service.setInvoker(new BeanInvoker(new EchoImpl()));

        getServiceRegistry().register(service);
       
        List exts = new ArrayList();
        exts.add(new CustomExtension());
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

    }
   
    public void testMessages() throws Exception
    {
        Service service = getServiceFactory().create(Echo.class);
        service.setInvoker(new BeanInvoker(new EchoImpl()));
       
        getServiceRegistry().register(service);
       
        for (int i = 0; i < 10; i++)
        {
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

    {
        super.setUp();
        AnnotationServiceFactory asf = new JaxbServiceFactory(getXFire().getTransportManager());
        service = asf.create(EchoRpcLit.class);
        server = new EchoRpcLit();
        service.setInvoker(new BeanInvoker(server));
        service.addInHandler(new DOMInHandler());
        service.addInHandler(new LoggingHandler());
       
        getServiceRegistry().register(service);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

    extends AbstractXFireAegisTest
{
    public void testBinding() throws Exception
    {
        Service service = new JibxServiceFactory().create(AccountService.class, null, "http://xfire.codehaus.org/", null);
        service.setInvoker(new BeanInvoker(new AccountServiceImpl()));
        getServiceRegistry().register(service);
       
        Document response = invokeService("AccountService", "/org/codehaus/xfire/jibx/getAccountStatus.xml");
        addNamespace("a", "http://xfire.codehaus.org/jibx");
        addNamespace("x", "http://xfire.codehaus.org/");
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

       
        endpoint = builder.create(InheritanceService.class,
                                  "InheritanceService",
                                  "urn:xfire:inheritance",
                                  null);
        endpoint.setInvoker(new BeanInvoker(new InheritanceServiceImpl()));
       
        List<String> pckgs = new ArrayList<String>();
        pckgs.add("xfire.inheritance2");
        endpoint.setProperty(JaxbType.SEARCH_PACKAGES, pckgs);
        getServiceRegistry().register(endpoint);
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

        ((ObjectServiceFactory) getServiceFactory()).setStyle(SoapConstants.STYLE_RPC);
        ((ObjectServiceFactory) getServiceFactory()).setUse(SoapConstants.USE_ENCODED);
       
        service = getServiceFactory().create(Echo.class, "Echo", "urn:Echo", null);
        service.setInvoker(new BeanInvoker(new EchoImpl()));
       
        getServiceRegistry().register(service);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

public class ByteServiceTest extends AbstractXFireAegisTest
{
    public void testService() throws Exception {
        Service service = getServiceFactory().create(ByteService.class);
        service.setInvoker(new BeanInvoker(new ByteService() {
            public byte[] echo(byte[] bytes)
            {
                return bytes;
            }
        }));
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

        }
        if (properties != null) {
            props.putAll(properties);
        }
        xfireService = factory.create(serviceClass, svcLocalName, svcNamespace, props);
        xfireService.setInvoker(new BeanInvoker(getPojo()));
        xfireService.setFaultSerializer(new JbiFaultSerializer());
        xfireService.setProperty(SoapConstants.MTOM_ENABLED, Boolean.toString(mtomEnabled));
        if (validationEnabled != null) {
            if ("jaxb2".equals(typeMapping)) {
                xfireService.setProperty(JaxbType.ENABLE_VALIDATION, validationEnabled.toString());
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.