Examples of Service


Examples of com.sun.xml.internal.ws.wsdl.writer.document.Service

     * Generates the Service section of the WSDL
     */
    protected void generateService() {
        QName portQName = model.getPortName();
        QName serviceQName = model.getServiceQName();
        Service service = serviceDefinitions.service().name(serviceQName.getLocalPart());
        extension.addServiceExtension(service);
        Port port = service.port().name(portQName.getLocalPart());
        port.binding(model.getBoundPortTypeName());
        extension.addPortExtension(port);
        if (model.getJavaMethods().size() == 0)
            return;

View Full Code Here

Examples of com.sun.xml.rpc.processor.model.Service

    }

    public void perform(Model model, Configuration config, Properties options) {
        //env = config.getEnvironment();
        for (Iterator it = model.getServices(); it.hasNext(); ) {
            Service service = (Service) it.next();
            mungeTo1_0(service);
        }
    }
View Full Code Here

Examples of com.sun.xml.rpc.spi.model.Service

        Collection endpoints = webService.getEndpoints();

        for(Iterator iter = endpoints.iterator(); iter.hasNext(); ) {
            WebServiceEndpoint next = (WebServiceEndpoint) iter.next();
            Service service = wsUtil.getServiceForPort(model,
                                                       next.getWsdlPort());
            if( service == null ) {
                service = (Service) model.getServices().next();

                System.out.println("Warning : Can't find Service for Endpoint '"
                                   + next.getEndpointName() + "' Port '" +
                                   next.getWsdlPort() + "'");

                System.out.println("Defaulting to "+ service.getName());
            }

            QName serviceName = service.getName();

            next.setServiceNamespaceUri(serviceName.getNamespaceURI());
            next.setServiceLocalPart(serviceName.getLocalPart());

            Port port = wsUtil.getPortFromModel(model, next.getWsdlPort());
View Full Code Here

Examples of com.sun.xml.ws.wsdl.writer.document.Service

     * Generates the Service section of the WSDL
     */
    protected void generateService() {
        QName portQName = model.getPortName();
        QName serviceQName = model.getServiceQName();
        Service service = serviceDefinitions.service().name(serviceQName.getLocalPart());
        extension.addServiceExtension(service);
        Port port = service.port().name(portQName.getLocalPart());
        port.binding(model.getBoundPortTypeName());
        extension.addPortExtension(port);
        if (model.getJavaMethods().isEmpty())
            return;

View Full Code Here

Examples of com.woorea.openstack.keystone.model.Access.Service

        ExamplesConfiguration.KEYSTONE_USERNAME,
        ExamplesConfiguration.KEYSTONE_PASSWORD);

    Access access = keystone.getAccessByTenant(ExamplesConfiguration.TENANT_NAME);

    Service glanceService = null;

    for (Service service : access.getServiceCatalog()) {
      if (service.getType().equals("image")) {
        glanceService = service;
        break;
      }
    }

    if (glanceService == null) {
      throw new RuntimeException("Glance service not found");
    }

    for (Endpoint endpoint : glanceService.getEndpoints()) {
      Glance glance = new Glance(endpoint.getPublicURL() + "/v1");
      glance.setTokenProvider(keystone
          .getProviderByTenant(ExamplesConfiguration.TENANT_NAME));

      // Creating a new image
View Full Code Here

Examples of etch.compiler.ast.Service

  }

  private void checkMsgParamFieldRefOrEnumItem( Message msg, Parameter param,
    Token arg, int argNo ) throws ParseException
  {
    Service service = msg.parent();
   
    StringTokenizer path = new StringTokenizer( arg.image, "." );
    String name = path.nextToken();
   
    Parameter p = msg.getParameter( name );
    if (p != null)
    {
      // it's a parameter, so type of p must be a struct...

      p = getField( service, p, path );
     
      if (p == null)
        throw new ParseException( String.format(
          "Authorize method %s arg %d name does not resolve to a field (%s) at line %d",
          method.image, argNo+1, arg, lineno() ) );
     
      Named<?> pt = p.type().getNamed( service );
      Named<?> paramType = param.type().getNamed( service );
      if (pt == paramType)
        return;

      throw typeMismatch( param, arg, argNo );
    }
   
    // it isn't a parameter, so it must be an enum...
   
    Named<?> named = service.get( name );
    if (named == null)
      throw new ParseException( String.format(
        "Authorize method %s arg %d name unknown (%s) at line %d",
        method.image, argNo+1, arg, lineno() ) );
   
View Full Code Here

Examples of eu.planets_project.ifr.core.wdt.impl.registry.Service

   
    protected List<SelectItem> toSelectItem(List<Service> services) {  
      List<SelectItem> ret = new ArrayList<SelectItem>();     
      logger.fine("toSelectItem services: "+services);
      for(int i=0; i<services.size(); i++ ) {
        Service service = services.get(i);
        //value must be a string - that seems to be a bug
        //ret.add(new SelectItem(service, "label#"+i));
        ret.add(new SelectItem(service.getId(), service.getName(), service.getEndpoint()));
        //logger.debug("select item for: "+service.getId()+" "+ service.getName()+" "+ service.getEndpoint());
      }
      return ret;
    }
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.generated.WorkflowConf.Services.Service

      serTempl.setClazz(wfTemplateName);
     
      Services services = new Services();
      //2.browse through the provided services and build the Services object
      for(ServiceBean sb : sbs){
        Service service = new Service();
        service.setId(sb.getServiceId());
        service.setEndpoint(sb.getServiceEndpoint());
       
        Parameters parameters = new Parameters();
        //3. iterate over all parameters that have been created/altered
        for(ServiceParameter param : sb.getServiceParameters()){
          Param parameter = new Param();
          parameter.setName(param.getName());
          parameter.setValue(param.getValue());
          parameters.getParam().add(parameter);
        }
        if(parameters.getParam().size()>0){
          //there needs to be a Parameter element only if there's a param for being xsd compliant
          service.setParameters(parameters);
        }
       
        services.getService().add(service);
      }
     
View Full Code Here

Examples of eu.planets_project.tb.impl.services.Service

     * @param node
     * @param slist
     */
    private void addNodes(String type, TreeNode<ServiceTreeItem> node, List<Service> slist ) {
        for( int i = 0; i < slist.size(); i++ ) {
            Service s = slist.get(i);
            if( s.getType().startsWith(type) ) {
                TreeNodeImpl<ServiceTreeItem> nodeImpl = new TreeNodeImpl<ServiceTreeItem>();
                nodeImpl.setData( new ServiceTreeItem(s) );
                node.addChild(new Integer(i), nodeImpl);
            }
        }
View Full Code Here

Examples of flex.messaging.services.Service

     *   @param serviceName The target service name
     *   @return An objectName for the service MBean.
     */
    public String getObjectNameForService(String serviceName) throws Exception
    {        
        Service service = (Service) mb.getService(serviceName);
        if (service == null)
            throw new Exception("Service " + serviceName + " not found");
        BaseControl bc = service.getControl();
        return bc.getObjectName().toString();
    }    
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.