Package org.jboss.ws.tools

Examples of org.jboss.ws.tools.WSTools.generate()


   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);
   }

   public void testEndpoint() throws Exception
   {
View Full Code Here


      String out_dir = "tools/jbws-206/jbossws/" + getBase();
      String configloc = "resources/tools/jbws-206/jbosswsConfig/" + getBase() + "/" + getBase() + "wsdl2java.xml";

      String[] args = new String[] { "-dest", out_dir, "-config", configloc };
      WSTools tools = new WSTools();
      tools.generate(args);
      checkServiceEndpointInterface();
      checkServiceInterface();
      checkGeneratedUserTypes();
   }
View Full Code Here

      String configStr = getBase().replaceAll("/", "");
      String configloc = "resources/tools/jbws-211/jbosswsConfig/" + getBase() + "/" + configStr + "Config.xml";

      String[] args = new String[] { "-dest", out_dir, "-config", configloc };
      WSTools tools = new WSTools();
      tools.generate(args);
      semanticallyValidateWSDL(wsdlFix, out_dir + "/wsdl/" + getWSDLName());
   }
}
View Full Code Here

   }

   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);
   }

   public void testEndpoint() throws Exception
   {
View Full Code Here

   {
      String[] args = new String[] { "-dest", "tools/globalconfig", "-config", "resources/tools/config/invalidConfig.xml" };
      WSTools tools = new WSTools();
      try
      {
         tools.generate(args);
         fail("Expected to fail on invalid config");
      }
      catch (Exception ex)
      {
         String msg = ex.getMessage();
View Full Code Here

   public void testJavaToWSDL() throws IOException
   {
      String[] args = new String[] { "-dest", "tools/globalconfig", "-config", "resources/tools/config/java2wsdlglobal.xml" };
      WSTools tools = new WSTools();
      tools.generate(args);

      WSDLDefinitions wsdl = getWSDLDefinitions(new File("tools/globalconfig/wsdl/MarshallService.wsdl"));
      JBossXSModel xsmodel = WSDLUtils.getSchemaModel(wsdl.getWsdlTypes());
      assertNotNull(xsmodel.getNamespaceItem("http://jboss.org/types"));
   }
View Full Code Here

   public void testWSDLToJava() throws IOException, ClassNotFoundException
   {
      String[] args = new String[] { "-dest", "tools/globalconfig", "-config", "resources/tools/config/wsdl2javaglobal.xml" };
      WSTools tools = new WSTools();
      tools.generate(args);
      File file = new File("tools/globalconfig/org/jboss/test/ws/StandardJavaTypes.java");
      assertTrue(file.exists());
      checkGeneratedClass(file);
   }
View Full Code Here

      String out_dir = getResourceFile("tools/jbws-206/jbossws/" + getBase()).getAbsolutePath();
      String configloc = getResourceFile("tools/jbws-206/jbosswsConfig/" + getBase() + "/" + getBase() + "wsdl2java.xml").getAbsolutePath();

      String[] args = new String[] { "-dest", out_dir, "-config", configloc };
      WSTools tools = new WSTools();
      tools.generate(args);
      checkServiceEndpointInterface();
      checkServiceInterface();
      checkGeneratedUserTypes();
   }
View Full Code Here

   {
      String[] args = new String[] { "-dest", "tools/globalconfig", "-config", getResourceFile("tools/config/invalidConfig.xml").getAbsolutePath() };
      WSTools tools = new WSTools();
      try
      {
         tools.generate(args);
         fail("Expected to fail on invalid config");
      }
      catch (Exception ex)
      {
         String msg = ex.getMessage();
View Full Code Here

      File dir = createResourceFile("tools/globalconfig");
      dir.mkdirs();

      String[] args = new String[] { "-dest", dir.getAbsolutePath(), "-config", getResourceFile("tools/config/java2wsdlglobal.xml").getAbsolutePath() };
      WSTools tools = new WSTools();
      tools.generate(args);

      WSDLDefinitions wsdl = getWSDLDefinitions(getResourceFile("tools/globalconfig/wsdl/MarshallService.wsdl"));
      JBossXSModel xsmodel = WSDLUtils.getSchemaModel(wsdl.getWsdlTypes());
      assertNotNull(xsmodel.getNamespaceItem("http://jboss.org/types"));
   }
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.