Examples of ServiceCreator


Examples of org.jboss.ws.tools.client.ServiceCreator

      WSDLDefinitions wsdl = wsdlJava.convertWSDL2Java(wsdlFile.toURL());
      wsdlJava.generateSEI(wsdl, createResourceFile("tools/jbws-160/jbossws/simple/sei"));

      //Create the Service File
      //Generate the Service Interface
      ServiceCreator sc = new ServiceCreator();
      sc.setPackageName("org.jboss.types");
      //sc.setServiceName("HelloWsService");
      sc.setDirLocation(createResourceFile("tools/jbws-160/jbossws/simple/service"));
      sc.setWsdl(wsdl);
      //sc.setPortName( "HelloWs" );
      sc.createServiceDescriptor();

      //Generate the Mapping file
      MappingFileGenerator mgf = new MappingFileGenerator(wsdl, new LiteralTypeMapping());
      mgf.setPackageName("org.jboss.types");
      mgf.setServiceName("HelloWsService");
View Full Code Here

Examples of org.jboss.ws.tools.client.ServiceCreator

      wsdlJava.setTypeMapping(new LiteralTypeMapping());
      wsdlJava.generateSEI(wsdl, createResourceFile("tools/jbws-160/jbossws/custom/sei"));

      //Create the Service File
      //Generate the Service Interface
      ServiceCreator sc = new ServiceCreator();
      sc.setPackageName("org.jboss.types");
      //sc.setServiceName("HelloCustomService");
      sc.setDirLocation(createResourceFile("tools/jbws-160/jbossws/custom/service"));
      sc.setWsdl(wsdl);
      //sc.setPortName( "HelloCustomRemote" );
      sc.createServiceDescriptor();

      //Generate the Mapping file
      MappingFileGenerator mgf = new MappingFileGenerator(wsdl, new LiteralTypeMapping());
      mgf.setPackageName("org.jboss.types");
      mgf.setServiceName("HelloCustomService");
View Full Code Here

Examples of org.jboss.ws.tools.client.ServiceCreator

      return clazz;
   }

   private void generateServiceFile(String packageName, WSDLDefinitions wsdl, String location) throws IOException
   {
      ServiceCreator sc = new ServiceCreator();
      sc.setPackageName(packageName);
      sc.setDirLocation(new File(location));
      sc.setWsdl(wsdl);
      sc.createServiceDescriptor();
   }
View Full Code Here

Examples of org.jboss.ws.tools.client.ServiceCreator

      return clazz;
   }

   private void generateServiceFile(String packageName, WSDLDefinitions wsdl, String location) throws IOException
   {
      ServiceCreator sc = new ServiceCreator();
      sc.setPackageName(packageName);
      sc.setDirLocation(new File(location));
      sc.setWsdl(wsdl);
      sc.createServiceDescriptor();
   }
View Full Code Here

Examples of org.jboss.ws.tools.client.ServiceCreator

/* 385 */     return clazz;
/*     */   }
/*     */
/*     */   private void generateServiceFile(String packageName, WSDLDefinitions wsdl, String location) throws IOException
/*     */   {
/* 390 */     ServiceCreator sc = new ServiceCreator();
/* 391 */     sc.setPackageName(packageName);
/* 392 */     sc.setDirLocation(new File(location));
/* 393 */     sc.setWsdl(wsdl);
/* 394 */     sc.createServiceDescriptor();
/*     */   }
View Full Code Here

Examples of org.olat.core.service.ServiceCreator

  /* (non-Javadoc)
   * @see org.olat.core.service.ServiceCreatorFactory#createServiceFor(java.lang.Class)
   */
  public Object createServiceFor(Class serviceInterfaceName) {
    ServiceCreator sc = serviceCreators.get(serviceInterfaceName.getName());
    return sc == null? null: sc.createService();
  }
View Full Code Here

Examples of org.olat.core.service.ServiceCreator

  /* (non-Javadoc)
   * @see org.olat.core.service.ServiceCreatorFactory#createNonNullServiceFor(java.lang.Class)
   */
  public Object createNonNullServiceFor(Class serviceInterfaceName) {
    ServiceCreator sc = serviceCreators.get(serviceInterfaceName.getName());
    if (sc == null) throw new AssertException("service '"+serviceInterfaceName.getName()+"' does not exist!");
    return sc.createService();
  }
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.