Package org.codehaus.xfire.service.binding

Examples of org.codehaus.xfire.service.binding.ObjectServiceFactory.create()


                return new QName("http://example.org/echo", "echo");
            }
        };
        factory.setStyle("document");
       
        service = factory.create(TestWSAServiceImpl.class);
        //service = factory.create(EchoImpl.class);
        service.addInHandler(new WSATestHandler(data));
        if (getXFire().getInHandlers().size() < 3)
        {
            ((DefaultXFire) getXFire()).addInHandler(new AddressingInHandler());
View Full Code Here


        factory.setStyle(SoapConstants.STYLE_MESSAGE);
       
        ((DefaultXFire)getXFire()).addInHandler(new AddressingInHandler());
        ((DefaultXFire)getXFire()).addOutHandler(new AddressingOutHandler());
       
        service = factory.create(BadEcho.class, "Echo", "urn:Echo", null);
        getServiceRegistry().register(service);
    }
   
    public void testInvoke()
        throws Exception
View Full Code Here

                return op;
            }

        };
        factory.setStyle("document");
        service = factory.create(TestWSAServiceImpl.class);

        service.addInHandler(new WSATestHandler(data));
        if (getXFire().getInHandlers().size() < 3)
        {
            ((DefaultXFire) getXFire()).addInHandler(new AddressingInHandler());
View Full Code Here

            }
        };
        factory.setStyle(SoapConstants.STYLE_MESSAGE);

        ((DefaultXFire) getXFire()).addInHandler(new AddressingInHandler());
        service = factory.create(EchoImpl.class, "Echo", "urn:Echo", null);
        getServiceRegistry().register(service);
    }

    public void testInvoke()
        throws Exception
View Full Code Here

    public void setUp() throws Exception
    {
        super.setUp();
       
        ObjectServiceFactory osf = (ObjectServiceFactory) getServiceFactory();
        service = osf.create(AnnotatedService.class);

        getServiceRegistry().register(service);
        tm = ((AegisBindingProvider) osf.getBindingProvider()).getTypeMapping(service);
    }
View Full Code Here

        };
       
        Map properties = new HashMap();
        properties.put(ObjectServiceFactory.PORT_TYPE, new QName("urn:Echo", "EchoPortType"));
       
        Service service = sf.create(Echo.class,
                                    new QName("urn:Echo", "Echo"),
                                    getClass().getResource("echo.wsdl"),
                                    null);
       
        assertEquals(1, service.getBindings().size());
View Full Code Here

        factory.setStyle(SoapConstants.STYLE_MESSAGE);
       
        ((DefaultXFire)getXFire()).addInHandler(new AddressingInHandler());
        ((DefaultXFire)getXFire()).addOutHandler(new AddressingOutHandler());
       
        service = factory.create(EchoImpl.class, "Echo", "urn:Echo", null);
        getServiceRegistry().register(service);
    }
   
    public void testInvoke()
        throws Exception
View Full Code Here

                return op;
            }
        };
        factory.setStyle("document");
        service = factory.create(TestWSAServiceImpl.class);
        service.addInHandler(new WSATestHandler(data));
        ((DefaultXFire) getXFire()).addInHandler(new AddressingInHandler());
        ((DefaultXFire) getXFire()).addFaultHandler(new AddressingOutHandler());
        ((DefaultXFire) getXFire()).addOutHandler(new AddressingOutHandler());
        getServiceRegistry().register(service);
View Full Code Here

            props.put(AnnotationServiceFactory.ALLOW_INTERFACE, Boolean.TRUE);
        }
        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)) {
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

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.