Examples of ServiceImpl


Examples of org.apache.cxf.service.ServiceImpl

        ServiceInfo serviceInfo = new ServiceInfo();
        SchemaCollection col = serviceInfo.getXmlSchemaCollection();
        col.getXmlSchemaCollection().setSchemaResolver(new CatalogXmlSchemaURIResolver(this.getBus()));
        col.getExtReg().registerSerializer(MimeAttribute.class, new MimeSerializer());

        ServiceImpl service = new ServiceImpl(serviceInfo);
        setService(service);
        setServiceProperties();

        serviceInfo.setName(getServiceQName());
        serviceInfo.setTargetNamespace(serviceInfo.getName().getNamespaceURI());
View Full Code Here

Examples of org.apache.cxf.service.ServiceImpl

        ServiceInfo serviceInfo = new ServiceInfo();
        SchemaCollection col = serviceInfo.getXmlSchemaCollection();
        col.getXmlSchemaCollection().setSchemaResolver(new CatalogXmlSchemaURIResolver(this.getBus()));
        col.getExtReg().registerSerializer(MimeAttribute.class, new MimeSerializer());

        ServiceImpl service = new ServiceImpl(serviceInfo);
        setService(service);

        setServiceProperties();

        serviceInfo.setName(getServiceQName());
View Full Code Here

Examples of org.apache.cxf.service.ServiceImpl

       
        OperationInfo ioi = addIssueOperation(ii, namespace, ns);
        OperationInfo coi = addCancelOperation(ii, namespace, ns);
       
        si.setInterface(ii);
        service = new ServiceImpl(si);
       
        BindingFactoryManager bfm = bus.getExtension(BindingFactoryManager.class);
        BindingFactory bindingFactory = bfm.getBindingFactory(soapVersion);
        BindingInfo bi = bindingFactory.createBindingInfo(service,
                                                          soapVersion, null);
View Full Code Here

Examples of org.apache.cxf.service.ServiceImpl

    }

    private Endpoint createTestEndpoint() throws Exception {
        ServiceInfo svci = new ServiceInfo();
        svci.setName(new QName(TEST_URI, "testService"));
        Service svc = new ServiceImpl(svci);
        SoapBindingInfo binding = new SoapBindingInfo(svci, WSDLConstants.NS_SOAP11);
        binding.setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT);
        EndpointInfo ei = new EndpointInfo();
        ei.setAddress(TEST_URI);
        ei.setName(new QName(TEST_URI, "testPort"));
View Full Code Here

Examples of org.apache.cxf.service.ServiceImpl

        }
        ServiceInfo serviceInfo = new ServiceInfo();
        SchemaCollection col = serviceInfo.getXmlSchemaCollection();
        col.getExtReg().registerSerializer(MimeAttribute.class, new MimeSerializer());

        ServiceImpl service = new ServiceImpl(serviceInfo);
        setService(service);

        setServiceProperties();

        serviceInfo.setName(getServiceQName());
View Full Code Here

Examples of org.apache.felix.dependencymanager.impl.ServiceImpl

        for (int i = services.size() - 1; i >= 0; i--) {
            Service service = (Service) services.get(i);
            manager.remove(service);
            // remove any state listeners that are still registered
            if (service instanceof ServiceImpl) {
                ServiceImpl si = (ServiceImpl) service;
                si.removeStateListeners();
            }
        }
    }
View Full Code Here

Examples of org.apache.geronimo.axis.client.ServiceImpl

    }

    public void testServiceEndpointProxy() throws Exception {
        AxisBuilder builder = new AxisBuilder();

        ServiceImpl serviceInstance = new ServiceImpl(null, null);

        URL location = new URL("http://geronimo.apache.org/ws");

        OperationInfo op = buildOperationInfoForMockOperation(builder);
        OperationInfo[] operationInfos = new OperationInfo[]{op};
View Full Code Here

Examples of org.apache.woden.internal.wsdl20.ServiceImpl

  }
 
    // Test that the assertion returns true for a service with no name.
  try
  {
    ServiceImpl service = new ServiceImpl();
    if(!val.testAssertionService1060(new Service[]{service}, reporter))
    {
      fail("The testAssertionService1060 method returned false for a service with no defined name.");
    }
  }
  catch(WSDLException e)
  {
    fail("There was a problem running the test assertion method " + e);
  }
 
    // Test that the assertion returns true for a service that is the only service defined.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      ServiceImpl service = (ServiceImpl)descEl.addServiceElement();
    service.setName(name1);
    if(!val.testAssertionService1060(new Service[]{service}, reporter))
    {
      fail("The testAssertionService1060 method returned false for a service that is the only service defined.");
    }
  }
  catch(WSDLException e)
  {
    fail("There was a problem running the test assertion method " + e);
  }
 
  // Test that the assertion returns true for a list of services that contains no duplicate names.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      ServiceImpl service = (ServiceImpl)descEl.addServiceElement();
    service.setName(name1);
    ServiceImpl service2 = (ServiceImpl)descEl.addServiceElement();
      service2.setName(name2);
    ServiceImpl service3 = (ServiceImpl)descEl.addServiceElement();
      service3.setName(name3);
   
    Service[] services = new Service[]{service, service2, service3};
   
    if(!val.testAssertionService1060(services, reporter))
    {
      fail("The testAssertionService1060 method returned false for a list of services that contains no duplicate names.");
    }
  }
  catch(WSDLException e)
  {
    fail("There was a problem running the test assertion method " + e);
  }
 
  // Test that the assertion returns false for two services that are defined with the same QName object.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      ServiceImpl service = (ServiceImpl)descEl.addServiceElement();
      service.setName(name1);
      ServiceImpl service2 = (ServiceImpl)descEl.addServiceElement();
      service2.setName(name2);
      ServiceImpl service3 = (ServiceImpl)descEl.addServiceElement();
    service3.setName(name1);
   
    Service[] services = new Service[]{service, service2, service3};
   
    if(val.testAssertionService1060(services, reporter))
    {
      fail("The testAssertionService1060 method returned true for a list of services that contains two services defined with the same QName object.");
    }
  }
  catch(WSDLException e)
  {
    fail("There was a problem running the test assertion method " + e);
  }
 
  // Test that the assertion returns false for two services that are defined with the same name and
  // different QName objects.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      ServiceImpl service = (ServiceImpl)descEl.addServiceElement();
      service.setName(name1);
      ServiceImpl service2 = (ServiceImpl)descEl.addServiceElement();
      service2.setName(name2);
      ServiceImpl service3 = (ServiceImpl)descEl.addServiceElement();
      service3.setName(new NCName("name1"));
   
    Service[] services = new Service[]{service, service2, service3};
   
    if(val.testAssertionService1060(services, reporter))
    {
View Full Code Here

Examples of org.apache.ws.scout.registry.infomodel.ServiceImpl

  }

  public static Service getService(BusinessService businessService, LifeCycleManager lifeCycleManager)
  throws JAXRException
  {
    Service serve = new ServiceImpl(lifeCycleManager);

    String keystr = businessService.getServiceKey();

    if (keystr != null)
    {
      serve.setKey(lifeCycleManager.createKey(keystr));
    }

    List<Name> namesList = businessService.getName();
    List<Description> descriptionList = businessService.getDescription();

    InternationalString is = null;
    for (Name n : namesList) {
      if (is == null) {
        is = lifeCycleManager.createInternationalString(getLocale(n.getLang()), n.getValue());
      } else {
        is.setValue(getLocale(n.getLang()), n.getValue());
      }
    }
    serve.setName(is);
   
    InternationalString dis = null;
    for (Description desc : descriptionList) {
            if (dis == null) {
                dis = lifeCycleManager.createInternationalString(getLocale(desc.getLang()), desc.getValue());
            } else {
                dis.setValue(getLocale(desc.getLang()), desc.getValue());
            }
        }
    for (int i = 0; i < namesList.size(); i++) {
     
    }
    serve.setDescription(dis);
   
    //Populate the ServiceBindings for this Service
    BindingTemplates bts = businessService.getBindingTemplates();
    List<BindingTemplate> bindingTemplateList = bts.getBindingTemplate();
    for (BindingTemplate bindingTemplate : bindingTemplateList) {
      serve.addServiceBinding(getServiceBinding(bindingTemplate, lifeCycleManager));
    }
    serve.addClassifications(getClassifications(businessService.getCategoryBag(), lifeCycleManager));

    return serve;
  }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.ServiceImpl

         throws Exception
   {
      String ejbName = ejbNames.get(ejbIndex);

      ServiceContainer container = super.getServiceContainer(ejbIndex, service);
      ServiceImpl annotation = new ServiceImpl((Service) container
            .resolveAnnotation(Service.class));

      container.setAssemblyDescriptor(dd.getAssemblyDescriptor());

      if (service != null && !isAnnotatedBean())
      {
         if (service.getObjectName() != null)
            annotation.setObjectName(service.getObjectName());
         if (service.getEjbName() != null)
            annotation.setName(service.getEjbName());
         if (service.getXmbean() != null)
            annotation.setXMBean(service.getXmbean());
         addClassAnnotation(container, Service.class, annotation);
      }

      addInterfaces(container, 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.