Package org.codehaus.xfire.service

Examples of org.codehaus.xfire.service.Service


        assertTrue(type.getTypeClass().isAssignableFrom(Integer.class));
    }
   
    public void testMapDTOService() throws Exception
    {
        Service service = getServiceFactory().create(MapDTOService.class);
        getServiceRegistry().register(service);
       
        invokeService(service.getSimpleName(), "/org/codehaus/xfire/aegis/type/java5/dto/GetDTO.xml");
    }
View Full Code Here


        invokeService(service.getSimpleName(), "/org/codehaus/xfire/aegis/type/java5/dto/GetDTO.xml");
    }
   
    public void testMapServiceWSDL() throws Exception
    {
        Service service = getServiceFactory().create(MapDTOService.class);
        getServiceRegistry().register(service);
       
        getWSDLDocument(service.getSimpleName());
    }
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());
        assertEquals(1, service.getEndpoints().size());
    }
View Full Code Here

public class BinaryDataTest extends AbstractXFireAegisTest
{
    public void testBinary() throws Exception
    {
        Service service = getServiceFactory().create(BinaryDataService.class);
        getServiceRegistry().register(service);
       
        runTests();
    }
View Full Code Here

        runTests();
    }
   
    public void testBinaryWithDOM() throws Exception
    {
        Service service = getServiceFactory().create(BinaryDataService.class);
        service.addInHandler(new DOMInHandler());
        getServiceRegistry().register(service);
       
        runTests();
    }
View Full Code Here

    protected void setUp()
        throws Exception
    {
        super.setUp();
       
        Service service = getServiceFactory().create(StreamReaderService.class);
        getServiceRegistry().register(service);
    }
View Full Code Here

    public void testInvokeDifferentBinding() throws Exception
    {
        Element root = new Element("root", "a", "urn:a");
        root.addContent("hello");
       
        Service serviceModel = new ObjectServiceFactory(new MessageBindingProvider()).create(Echo.class);
        XFireProxyFactory factory = new XFireProxyFactory(getXFire());
        Echo echo = (Echo) factory.create(serviceModel, "xfire.local://Echo");
       
        Element e = echo.echo(root);
        assertEquals(root.getName(), e.getName());
View Full Code Here

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

        Service service = getServiceFactory().create(EchoImpl.class);

        service.addInHandler(new DOMInHandler());
        service.addOutHandler(new DOMOutHandler());
       
        getServiceRegistry().register(service);
    }
View Full Code Here

    }

    public void testInvoke()
            throws Exception
    {
        Service service = getServiceFactory().create(Messenger.class);
        getServiceRegistry().register(service);
       
        assertNotNull(service.getBindingProvider());
       
        OperationInfo info = service.getServiceInfo().getOperation("receive");
        assertEquals(1, info.getInputMessage().getMessageParts().size());
       
        invokeService("Messenger", "/org/codehaus/xfire/echo11.xml");
    }
View Full Code Here

    protected void setUp()
        throws Exception
    {
        super.setUp();
        data = new AddressingInData();
        Service service;
        ObjectServiceFactory factory = new ObjectServiceFactory(getXFire().getTransportManager(),
                new MessageBindingProvider())
        {

            protected OperationInfo addOperation(Service endpoint, Method method, String use)
            {
                OperationInfo op = super.addOperation(endpoint, method, use);

                new AddressingOperationInfo("http://example.org/action/notify", op);

                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

TOP

Related Classes of org.codehaus.xfire.service.Service

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.