Package org.codehaus.xfire.service

Examples of org.codehaus.xfire.service.Service


        {
            url = args[0];
        }
       
        XmlBeansServiceFactory xsf = new XmlBeansServiceFactory();
        Service serviceModel = xsf.create(OrderService.class);
       
        OrderService client =
            (OrderService) new XFireProxyFactory().create(serviceModel, url);
       
        PurchaseOrderDocument poDoc = PurchaseOrderDocument.Factory.newInstance();
View Full Code Here


    catch (HelloFaultMessage exception) {
    }
  }

  private XFireHttpServer startXFireServer(int httpPort, XFireExporter exporter) throws Exception {
    Service service = exporter.getXFireService();

        XFire xfire = XFireFactory.newInstance().getXFire();
        xfire.getServiceRegistry().register(service);
       
    XFireHttpServer server = new XFireHttpServer();
View Full Code Here

public class ElementMappingTest extends AbstractXFireAegisTest
{
    public void testMapping()
    {
        String ns = "urn:AddNumbers";
        Service service = getServiceFactory().create(AddNumbers.class, "AddNumbers", ns, null);
       
        OperationInfo operation = service.getServiceInfo().getOperation("add");
       
        MessagePartInfo v1 = operation.getInputMessage().getMessagePart(new QName(ns, "value1"));
        assertNotNull(v1);
       
        MessagePartInfo v2 = operation.getInputMessage().getMessagePart(new QName(ns, "value2"));
View Full Code Here

                return op.getName();
            }
        };
        osf.setStyle(SoapConstants.STYLE_DOCUMENT);
       
        Service service = osf.create(SoapActionService.class);
        getServiceRegistry().register(service);
    }
View Full Code Here

        getWSDL("BeanService").write(bos);
       
        Client client = new Client(new ByteArrayInputStream(bos.toByteArray()), null);
       
        // -- From change 1929
        Service model = client.getService();
        AegisBindingProvider bp = (AegisBindingProvider) model.getBindingProvider();
        TypeMapping typeMapping = bp.getTypeMapping(model);
       
        BeanType bt = new BeanType();
        bt.setSchemaType(new QName("http://services.xfire.codehaus.org","SimpleBean"));
        bt.setTypeClass(SimpleBean.class);
View Full Code Here

    {
        super.setUp();
       
        osf = new JAXWSServiceFactory(getXFire().getTransportManager());

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

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

  public void testServiceConfig() throws Exception {
    ObjectServiceFactory factory = (ObjectServiceFactory) getServiceFactory();
    AegisServiceConfiguration conf = new AegisServiceConfiguration();
    conf.setServiceFactory(factory);
    factory.getServiceConfigurations().add(0, conf);
    Service service = getServiceFactory().create(EchoImpl.class);
        service.setInvoker(new BeanInvoker(new EchoImpl()));
        getServiceRegistry().register(service);
        Document wsdl = getWSDLDocument("EchoImpl");
        printNode(wsdl);
        addNamespace("wsdl", WSDLWriter.WSDL11_NS);
        addNamespace("xsd","http://www.w3.org/2001/XMLSchema");
View Full Code Here

        ServiceStarter starter = new ServiceStarter();
        starter.start();
       
        // Create a service model for the client
        ObjectServiceFactory serviceFactory = new ObjectServiceFactory();
        Service serviceModel = serviceFactory.create(Echo.class);

        // Create a client proxy
        XFireProxyFactory proxyFactory = new XFireProxyFactory();
        Echo echo = (Echo) proxyFactory.create(serviceModel, "http://localhost:8191/Echo");
       
View Full Code Here

            throws Exception
    {
        super.setUp();

        ((ObjectServiceFactory)getServiceFactory()).addIgnoredMethods(BeanIgnoredIntf.class.getName());
        Service service = getServiceFactory().create(BeanServiceIntf.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, BeanServiceImpl.class);

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

    {
        super.setUp();
       
        osf = new JAXWSServiceFactory(getXFire().getTransportManager());

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

        getXFire().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.