Examples of WSTools


Examples of org.jboss.ws.tools.WSTools

   protected void generateScenario(final String scenario) throws Exception
   {
      String resourceDir = "resources/tools/jbws429/" + scenario;
      String toolsDir = "tools/jbws429/" + 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)
         {
            return name.endsWith(".java");
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   protected void generateScenario(final String scenario) throws Exception
   {
      String resourceDir = "resources/tools/jbws1450/scenario_" + scenario;
      String toolsDir = "tools/jbws1450/scenario_" + 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 void testWsdlToJava() throws Exception
   {
      WSTools wstools = new WSTools();
      boolean ret = wstools.generate("resources/jaxrpc/jbws1384/wstools-config.xml", "./wstools/jbws1384");
      assertTrue("wstools success", ret);
   }
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   protected void generateScenario(final String scenario) throws Exception
   {
      String resourceDir = "resources/tools/jbws1260/scenario_" + scenario;
      String toolsDir = "tools/jbws1260/scenario_" + 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

   protected void generateScenario(final String scenario) throws Exception
   {
      String resourceDir = "resources/tools/jbws1723/" + scenario;
      String toolsDir = "tools/jbws1723/" + 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)
         {
            return name.endsWith(".java");
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 testPortTypePort() throws Exception
   {
      String resourceDir = "resources/tools/jbws1253";
      String toolsDir = "tools/jbws1253";
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);

      JaxrpcMappingValidator mappingValidator = new JaxrpcMappingValidator();
      mappingValidator.validate(resourceDir + "/myporttype-mapping.xml", toolsDir + "/myporttype-mapping.xml");

      File expSEI = new File(resourceDir + "/My.java");
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   {
      String resourceDir = "resources/tools/jbws1538";
      String toolsDir = "tools/jbws1538";
      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

   protected void generateScenario(final String scenario) throws Exception
   {
      String resourceDir = "resources/tools/jbws1697/" + scenario;
      String toolsDir = "tools/jbws1697/" + 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)
         {
            return name.endsWith(".java");
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   public void testGenerate() throws Exception
   {
      String resourceDir = "resources/tools/jbws1627";
      String toolsDir = "tools/jbws1627";
      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
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.