Package org.codehaus.xfire.service.binding

Examples of org.codehaus.xfire.service.binding.ObjectServiceFactory


    protected void setUp()
        throws Exception
    {
        super.setUp();
       
        ObjectServiceFactory osf = (ObjectServiceFactory) getServiceFactory();
        service = osf.create(AuthService.class, name, ns, null);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, AuthServiceImpl.class);
       
        soap12Binding = osf.createSoap12Binding(service, new QName(service.getTargetNamespace(), "Auth12"), LocalTransport.BINDING_ID);

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


        else
        {
            m_xfire = xfire;
        }
        m_serviceRegistry = m_xfire.getServiceRegistry();
        m_serviceFactory = new ObjectServiceFactory(m_xfire.getTransportManager(),
                new AegisBindingProvider());
    }
View Full Code Here

    public void setUp()
            throws Exception
    {
        super.setUp();

        ObjectServiceFactory factory = (ObjectServiceFactory) getServiceFactory();
        factory.addSoap11Transport(JMSTransport.BINDING_ID);
       
        service = factory.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);
        getServiceRegistry().register(service);
    }
View Full Code Here

        throws MalformedURLException
    {
        System.out.print("Running client : " + getName() + "\n");

   
        Service serviceModel = new ObjectServiceFactory().create(IBook.class,
                                                                 "BookService",
                                                                 SERVICE_NAMESPACE,
                                                                 null);

        IBook service = (IBook) new XFireProxyFactory().create(serviceModel, SERVICE_URL
View Full Code Here

    public void testClient()
            throws Exception
    {
        // Create a ServiceFactory to create the ServiceModel.
        // We need to add the JMSTransport to the list of bindings to create.
        ObjectServiceFactory sf = new ObjectServiceFactory(getTransportManager());
        sf.addSoap11Transport(JMSTransport.BINDING_ID);
       
        // Create the service model
        Service serviceModel = sf.create(Echo.class);
       
        // Create a proxy for the service
        XFireProxyFactory factory = new XFireProxyFactory(getXFire());
        Echo echo = (Echo) factory.create(serviceModel, "jms://Echo");
       
View Full Code Here

        System.setProperty("javax.xml.stream.XMLInputFactory",
                             "com.bea.xml.stream.MXParserFactory");

        CastorTypeMappingRegistry registry = new CastorTypeMappingRegistry();
        registry.setMappingFile("org/codehaus/xfire/castor/castor.xml");
        builder = new ObjectServiceFactory(getXFire().getTransportManager(),
                new AegisBindingProvider(registry));
        ArrayList schemas = new ArrayList();
        schemas.add(getTestFile("src/test-schemas/Book.xsd").getAbsolutePath());
        Map props = new HashMap();
        props.put(ObjectServiceFactory.SCHEMAS, schemas);
View Full Code Here

    public void testClient()
            throws Exception
    {
        // Create a ServiceFactory to create the ServiceModel.
        // We need to add the JMSTransport to the list of bindings to create.
        ObjectServiceFactory sf = new ObjectServiceFactory(getTransportManager());
        sf.addSoap11Transport(JMSTransport.BINDING_ID);
       
        // Create the service model
        Service serviceModel = sf.create(Echo.class);
       
        // Create a proxy for the service
        XFireProxyFactory factory = new XFireProxyFactory(getXFire());
        Echo echo = (Echo) factory.create(serviceModel, "jms://GenericQueue?queue=Echo");
       
View Full Code Here

        throws MalformedURLException
    {
        System.out.print("Running client : "+getName()+"\n");
       

        Service serviceModel = new ObjectServiceFactory().create(IBook.class,
                                                                 "BookService",
                                                                 SERVICE_NAMESPACE,
                                                                 null);

        IBook service = (IBook) new XFireProxyFactory().create(serviceModel, SERVICE_URL
View Full Code Here

    public void testClient()
            throws Exception
    {
        // Create a ServiceFactory to create the ServiceModel.
        // We need to add the JMSTransport to the list of bindings to create.
        ObjectServiceFactory sf = new ObjectServiceFactory(getTransportManager());
        sf.addSoap11Transport(JMSTransport.BINDING_ID);
       
        // Create the service model
        Service serviceModel = sf.create(Echo.class);
       
        // Create a proxy for the service
        XFireProxyFactory factory = new XFireProxyFactory(getXFire());
        Echo echo = (Echo) factory.create(serviceModel, "jms://GenericTopic?topic=Echo");
       
View Full Code Here

public class MTOMClient
{
    public static void main(String[] args)
        throws MalformedURLException
    {
        Service serviceModel = new ObjectServiceFactory()
                .create(MTOMService.class,
                        "MTOMService",
                        "http://xfire.codehaus.org/MTOMService",
                        null);
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.service.binding.ObjectServiceFactory

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.