Examples of WSTools


Examples of org.jboss.ws.tools.WSTools

   {
      String resourceDir = "resources/tools/jbws1231";
      String toolsDir = "tools/jbws1231";
      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 void testAnonymousType() throws Exception
   {
      String resourceDir = "resources/tools/jbws1079";
      String toolsDir = "tools/jbws1079";
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);

      compareSource(resourceDir + "/LookupResponseNumber.java", toolsDir + "/org/jboss/test/ws/jbws1079/LookupResponseNumber.java");
      compareSource(resourceDir + "/Person.java", toolsDir + "/org/jboss/test/ws/jbws1079/Person.java");
      compareSource(resourceDir + "/PhoneBook_PortType.java", toolsDir + "/org/jboss/test/ws/jbws1079/PhoneBook_PortType.java");
      compareSource(resourceDir + "/TelephoneNumber.java", toolsDir + "/org/jboss/test/ws/jbws1079/TelephoneNumber.java");
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

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

      String wsdlFix = "resources/tools/jbws-211/wsdlFixture/" + getBase() + "/" + getWSDLName();
      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

Examples of org.jboss.ws.tools.WSTools

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

      semanticallyValidateWSDL(resourceDir + "/ValueObjectService.wsdl", toolsDir + "/wsdl/ValueObjectService.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/jbws1597/" + scenario;
      String toolsDir = "tools/jbws1597/" + 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/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"));
      assertEquals(exp, was);
   }
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

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

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

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

      compareSource("MyException.java");
      compareSource("TestEndpoint_PortType.java");

      JaxrpcMappingValidator mappingValidator = new JaxrpcMappingValidator();
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.