Package org.jboss.wsf.spi.tools

Examples of org.jboss.wsf.spi.tools.WSContractProvider.provide()


      if (! quiet)
         gen.setMessageStream(System.out);
     
      try
      {
         gen.provide(endpoint);
         return 0;
      }
      catch (Throwable t)
      {
         System.err.println("Error: Could not generate. (use --show-traces to see full traces)");
View Full Code Here


         if (sourcedestdir != null)
            gen.setSourceDirectory(sourcedestdir);

         log("Generating from endpoint: " + sei, Project.MSG_INFO);
        
         gen.provide(sei);
      }
      finally
      {
         Thread.currentThread().setContextClassLoader(prevCL);
      }
View Full Code Here

      if (! quiet)
         gen.setMessageStream(System.out);
     
      try
      {
         gen.provide(endpoint);
         return 0;
      }
      catch (Throwable t)
      {
         System.err.println("Error: Could not generate. (use --show-traces to see full traces)");
View Full Code Here

   public void testBasic() throws Exception
   {
      WSContractProvider gen = getGenerator();
      File outputDir = new File("tools/jaxws/wscontractprovider/basic/out");
      gen.setOutputDirectory(outputDir);
      gen.provide(DocWrappedServiceImpl.class);
     
      checkWrapperClasses(outputDir);
  
      // There should be no source code
      checkWrapperSource(outputDir, false);
View Full Code Here

   {
      WSContractProvider gen = getGenerator();
      File outputDir = new File("tools/jaxws/wscontractprovider/source/out");
      gen.setOutputDirectory(outputDir);
      gen.setGenerateSource(true);
      gen.provide(DocWrappedServiceImpl.class);
     
      checkWrapperClasses(outputDir);
      checkWrapperSource(outputDir, true);
   }
  
View Full Code Here

      File sourceDir = new File("tools/jaxws/wscontractprovider/sourcedir/source");
     
      gen.setOutputDirectory(outputDir);
      gen.setSourceDirectory(sourceDir);
      gen.setGenerateSource(true);
      gen.provide(DocWrappedServiceImpl.class);
     
      checkWrapperClasses(outputDir);
      checkWrapperSource(outputDir, false);
      checkWrapperSource(sourceDir, true);
   }
View Full Code Here

   {
      WSContractProvider gen = getGenerator();
      File outputDir = new File("tools/jaxws/wscontractprovider/wsdl/out");
      gen.setOutputDirectory(outputDir);
      gen.setGenerateWsdl(true);
      gen.provide(DocWrappedServiceImpl.class);
     
      checkWrapperClasses(outputDir);
  
      // There should be no source code
      checkWrapperSource(outputDir, false);
View Full Code Here

      File outputDir = new File("tools/jaxws/wscontractprovider/resourcedir/out");
      File wsdlDir = new File("tools/jaxws/wscontractprovider/resourcedir/wsdl");
      gen.setOutputDirectory(outputDir);
      gen.setResourceDirectory(wsdlDir);
      gen.setGenerateWsdl(true);
      gen.provide(DocWrappedServiceImpl.class);
     
      checkWrapperClasses(outputDir);
  
      // There should be no source code
      checkWrapperSource(outputDir, false);
View Full Code Here

         if (sourcedestdir != null)
            gen.setSourceDirectory(sourcedestdir);

         log("Generating from endpoint: " + sei, Project.MSG_INFO);
        
         gen.provide(sei);
      }
      finally
      {
         Thread.currentThread().setContextClassLoader(prevCL);
      }
View Full Code Here

      if (! quiet)
         gen.setMessageStream(System.out);
     
      try
      {
         gen.provide(endpoint);
         return 0;
      }
      catch (Throwable t)
      {
         System.err.println("Error: Could not generate. (use --show-traces to see full traces)");
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.