Package org.codehaus.xfire.service.invoker

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


    }
   
    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

    {
        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

    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

       
        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

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

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

        }
        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

    super.init(servletConfig);
    ObjectServiceFactory factory =
      new ObjectServiceFactory(getXFire().getTransportManager(), null);
    factory.addIgnoredMethods("java.lang.Comparable");
    Service service = factory.create(_serviceClass);
    service.setInvoker(new BeanInvoker(_instance));
    getController().getServiceRegistry().register(service);
  }
View Full Code Here

        props.put(ObjectServiceFactory.USE, SoapConstants.USE_LITERAL);
        if (serviceInterface != null) {
            props.put("annotations.allow.interface", "true");
        }
        xfireService = factory.create(serviceClass, svcLocalName, svcNamespace, props);
        xfireService.setInvoker(new BeanInvoker(getPojo()));
        xfireService.setFaultSerializer(new JbiFaultSerializer(getConfiguration()));
        xfireService.setProperty(SoapConstants.MTOM_ENABLED, Boolean.toString(mtomEnabled));
        xfire.getServiceRegistry().register(xfireService);
       
        // If the wsdl has not been provided,
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.service.invoker.BeanInvoker

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.