Examples of WSTools


Examples of org.jboss.ws.tools.WSTools

   {
      String resourceDir = "resources/tools/jbws2389/" + scenario;
      String toolsDir = "tools/jbws2389/" + scenario;

      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);

      File resourceDirFile = new File(resourceDir);
      String[] expectedFiles = resourceDirFile.list(new FilenameFilter() {
         public boolean accept(File dir, String name)
         {
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   public final void testMultiplePackageNameSpace() throws Exception
   {
      String resourceDir = "resources/tools/jbws2018";
      String toolsDir = "tools/jbws2018";
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);

      semanticallyValidateWSDL(resourceDir + "/TestService.wsdl", toolsDir + "/wsdl/TestService.wsdl");

      JaxrpcMappingValidator mappingValidator = new JaxrpcMappingValidator();
      mappingValidator.validate(resourceDir + "/jaxrpc-mapping.xml", toolsDir + "/jaxrpc-mapping.xml");
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   public final void testEnumWsdl() throws Exception
   {
      String config = "resources/tools/enums/wstools-config.xml";
      String[] args= new String[]{"-dest", "tools/enums", "-config", config};
      new WSTools().generate(args);
     
      Element exp = DOMUtils.parse(new FileInputStream("resources/tools/enums/EnumService.wsdl"));
      Element was = DOMUtils.parse(new FileInputStream("tools/enums/wsdl/EnumService.wsdl"));
      assertEquals(exp, was);
   }
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   public final void testMultiplePackageNameSpace() throws Exception
   {
      String resourceDir = "resources/tools/jbws1217";
      String toolsDir = "tools/jbws1217";
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);

      compareSource(resourceDir + "/Test.java", toolsDir + "/org/jboss/test/ws/jbws1217/Test.java");
      compareSource(resourceDir + "/TestException.java", toolsDir + "/org/jboss/test/ws/jbws1217/exception/TestException.java");
      compareSource(resourceDir + "/BaseException.java", toolsDir + "/org/jboss/test/ws/jbws1217/base/BaseException.java");
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   public final void testEnumWsdl() throws Exception
   {
      String config = "resources/tools/jbws818/wstools-config.xml";
      String[] args= new String[]{"-dest", "tools/jbws818", "-config", config};
      new WSTools().generate(args);

      Element exp = DOMUtils.parse(new FileInputStream("resources/tools/jbws818/CrossPackageInheritenceService.wsdl"));
      Element was = DOMUtils.parse(new FileInputStream("tools/jbws818/wsdl/CrossPackageInheritenceService.wsdl"));
      // With JDK6 these are not lexically equivalent
      //assertEquals(exp, was);
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   public void testGenerate() throws Exception
   {
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };

      new WSTools().generate(args);
      compareSource("Models_ServiceIM_ServiceProxyService.java");
      compareSource("ValidationEvent_test.java");

      JaxrpcMappingValidator mappingValidator = new JaxrpcMappingValidator();
      File jaxrpcMapping = new File(resourceDir + "/jaxrpc-mapping.xml");
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   public final void testEnumWsdl() throws Exception
   {
      String config = "resources/tools/enums/wstools-config.xml";
      String[] args= new String[]{"-dest", "tools/enums", "-config", config};
      new WSTools().generate(args);
     
      Element exp;
      if (hasJDK15())
      {
         exp = DOMUtils.parse(new FileInputStream("resources/tools/enums/EnumService15.wsdl"));
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

      }
   }

   public void testWsdlToJava() throws Exception
   {
      WSTools wstools = new WSTools();
      String configPath = getResourceFile("jaxrpc/jbws1384/wstools-config.xml").getPath();
      boolean ret = wstools.generate(configPath, "./wstools/jbws1384");
      assertTrue("wstools success", ret);
   }
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   public final void testEnumWsdl() throws Exception
   {
      String config = getResourceFile("tools/jbws818/wstools-config.xml").getAbsolutePath();
      String[] args= new String[]{"-dest", "tools/jbws818", "-config", config};
      new WSTools().generate(args);

      Element exp = DOMUtils.parse(new FileInputStream(getResourceFile("tools/jbws818/CrossPackageInheritenceService.wsdl").getAbsolutePath()));
      Element was = DOMUtils.parse(new FileInputStream("tools/jbws818/wsdl/CrossPackageInheritenceService.wsdl"));
      assertEquals(exp, was);
   }
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   private static final String toolsDir = "tools/jbpapp921";

   public void testGenerate() throws Exception
   {
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);
      compareSource("Models_ServiceIM_ServiceProxyService.java");
      compareSource("ValidationEvent_test.java");
   }
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.