Package org.codehaus.xfire.service

Examples of org.codehaus.xfire.service.Service


        assertTrue( channel instanceof LocalChannel );
    }
   
    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


        assertEquals( new QName("urn:xfire:foo", "custom"), type.getSchemaType());
    }
   
    public void testMapServiceWSDL() throws Exception
    {
        Service service = getServiceFactory().create(CustomTypeService.class);
        getServiceRegistry().register(service);
       
        Document wsdl = getWSDLDocument(service.getSimpleName());
        addNamespace("xsd", SoapConstants.XSD);
        assertValid("//xsd:element[@name='s'][@type='ns1:custom']", wsdl);
    }
View Full Code Here

       
        osf = new AnnotationServiceFactory(new Jsr181WebAnnotations(),
                                           getXFire().getTransportManager(),
                                           null);

        Service service = osf.create(HeaderService.class);

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

            throws Exception
    {
        super.setUp();

        ((ObjectServiceFactory) getServiceFactory()).setStyle(SoapConstants.STYLE_DOCUMENT);
        Service service = getServiceFactory().create(DocumentService.class, "Doc", "urn:Doc", null);

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

            throws Exception
    {
        super.setUp();

        ((ObjectServiceFactory) getServiceFactory()).setStyle(SoapConstants.STYLE_DOCUMENT);
        Service service = getServiceFactory().create(BeanService.class, "Bean", "urn:Bean", null);
        service.setProperty(AbstractWSDL.GENERATE_IMPORTS, "true");
        getServiceRegistry().register(service);
    }
View Full Code Here

import c.b.a._2006._07.authentication.AuthenticationInterface;
import c.b.a._2006._07.authentication.AuthenticationServiceClient;

public class AnyTypeServiceTest extends AbstractXFireAegisTest {
  public void testAnyTypeService() {
    Service service = new JaxbServiceFactory().create(AuthenticationServiceImpl.class);
   
    List<String> search = new ArrayList<String>();
    search.add("org.codehaus.xfire.generator.any");
    service.setProperty(JaxbType.SEARCH_PACKAGES, search);
   
    getServiceRegistry().register(service);
   
    AuthenticationServiceClient stub = new AuthenticationServiceClient();
    AuthenticationInterface client = stub.getAuthenticationInterfaceLocalEndpoint();
View Full Code Here

            throws Exception
    {
        super.setUp();

        ((ObjectServiceFactory) getServiceFactory()).setStyle(SoapConstants.STYLE_DOCUMENT);
        Service service = getServiceFactory().create(ProviderService.class);

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

    
        XFireHttpServer server = new XFireHttpServer(getXFire());
        server.setPort(8191);
        server.start();
       
        Service service = serverFact.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);

        getServiceRegistry().register(service);

        // now create a special factory that will actually use the created WSDL
        factory = new XFireClientFactoryBean();
View Full Code Here

    
        XFireHttpServer server = new XFireHttpServer(getXFire());
        server.setPort(8191);
        server.start();
       
        Service service = serverFact.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);

        getServiceRegistry().register(service);

        // now create a special factory that will actually use the created WSDL
        factory = new XFireClientFactoryBean();
View Full Code Here

    public void testService()
    {
        ServiceRegistry reg = (ServiceRegistry) getBean("xfire.serviceRegistry");
        assertTrue(reg.hasService("Echo"));
       
        Service service = reg.getService("Echo");
        OperationInfo operation = service.getServiceInfo().getOperation("echo");
        MessagePartInfo mp = (MessagePartInfo) operation.getInputMessage().getMessageParts().get(0);

        AegisBindingProvider bp = (AegisBindingProvider) getBean("xfire.aegisBindingProvider");
       
        TypeMapping dtypeMapping = bp.getTypeMappingRegistry().getDefaultTypeMapping();
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.