Examples of WSDLToJava


Examples of org.jboss.ws.tools.WSDLToJava

   }

   private void generateSEI(WSDLDefinitions wsdl)
   {
      String seidir = "tools";
      WSDLToJavaIntf wsdljava = new WSDLToJava();

      //Generate the SEI
      try
      {
         wsdljava.setTypeMapping(new LiteralTypeMapping());
         wsdljava.generateSEI(wsdl, new File(seidir));
      }
      catch (Exception e)
      {
         e.printStackTrace();
      }
View Full Code Here

Examples of org.jboss.ws.tools.WSDLToJava

      String filename = "StandardJavaTypesService_DOC_11.wsdl";
      File wsdlFile = new File("resources/tools/wsdlfixture/" + filename);
      WSDLTypes types = null;
      try
      {
         WSDLToJavaIntf wsdljava = new WSDLToJava();
         wsdljava.setTypeMapping(new LiteralTypeMapping());
         WSDLDefinitions wsdl = wsdljava.convertWSDL2Java(wsdlFile.toURL());
         types = wsdl.getWsdlTypes();
      }
      catch (IOException e)
      {
         e.printStackTrace();
View Full Code Here

Examples of org.jboss.ws.tools.WSDLToJava

      String filename = "StandardJavaTypesService_DOC_11.wsdl";
      File wsdlFile = new File("resources/tools/wsdlfixture/" + filename);
      WSDLTypes types = null;
      try
      {
         WSDLToJavaIntf wsdljava = new WSDLToJava();
         wsdljava.setTypeMapping(new LiteralTypeMapping());
         WSDLDefinitions wsdl = wsdljava.convertWSDL2Java(wsdlFile.toURL());
         types = wsdl.getWsdlTypes();
      }
      catch (IOException e)
      {
         e.printStackTrace();
View Full Code Here

Examples of org.jboss.ws.tools.WSDLToJava

      // System property passed through the ant build script
      String wsdldir = System.getProperty("wsdl.dir", "resources/tools");

      File wsdlFile = new File(wsdldir + "/wsdl20assertions/" + wsdlname);
      WSDLToJavaIntf wsdljava = new WSDLToJava();
      try
      {
         WSDLDefinitions wsdl = wsdljava.convertWSDL2Java(wsdlFile.toURL());
         fail("Test Should not have passed");
      }
      catch (RuntimeException ie)
      {
         // ignore expected exception
View Full Code Here

Examples of org.jboss.ws.tools.WSDLToJava

      // System property passed through the ant build script
      String wsdldir = System.getProperty("wsdl.dir", getResourceFile("tools").getAbsolutePath());

      File wsdlFile = createResourceFile(wsdldir + "/wsdl20assertions/" + wsdlname);
      WSDLToJavaIntf wsdljava = new WSDLToJava();
      try
      {
         WSDLDefinitions wsdl = wsdljava.convertWSDL2Java(wsdlFile.toURL());
         fail("Test Should not have passed");
      }
      catch (RuntimeException ie)
      {
         // ignore expected exception
View Full Code Here

Examples of org.jboss.ws.tools.WSDLToJava

   }  

   /** Test a simple SEI that uses primitives */
   public void testSimpleCase() throws Exception
   {
      WSDLToJava wsdlJava = new WSDLToJava();
      File wsdlFile = getResourceFile("tools/jbws-161/wscompile/simple/wsdl/HelloWsService.wsdl");
      wsdlJava.setTypeMapping(new LiteralTypeMapping());
      WSDLDefinitions wsdl = wsdlJava.convertWSDL2Java(wsdlFile.toURL());
      wsdlJava.generateSEI(wsdl, createResourceFile("tools/jbws-160/jbossws/simple/sei"));

      //Create the Service File
      //Generate the Service Interface
      ServiceCreator sc = new ServiceCreator();
      sc.setPackageName("org.jboss.types");
View Full Code Here

Examples of org.jboss.ws.tools.WSDLToJava

   private void generateSEI(WSDLDefinitions wsdl)
   {
      File seidir = createResourceFile("tools");
      seidir.mkdirs();
      WSDLToJavaIntf wsdljava = new WSDLToJava();

      //Generate the SEI
      try
      {
         wsdljava.setTypeMapping(new LiteralTypeMapping());
         wsdljava.generateSEI(wsdl, seidir);
      }
      catch (Exception e)
      {
         e.printStackTrace();
      }
View Full Code Here

Examples of org.jboss.ws.tools.WSDLToJava

   }

   /** Test a custom SEI that uses custom types */
   public void testCustomCase() throws Exception
   {
      WSDLToJava wsdlJava = new WSDLToJava();
      File wsdlFile = getResourceFile("tools/jbws-161/wscompile/custom/wsdl/HelloCustomService.wsdl");
      wsdlJava.setTypeMapping(new LiteralTypeMapping());
      WSDLDefinitions wsdl = wsdlJava.convertWSDL2Java(wsdlFile.toURL());
      wsdlJava.setTypeMapping(new LiteralTypeMapping());
      wsdlJava.generateSEI(wsdl, createResourceFile("tools/jbws-160/jbossws/custom/sei"));

      //Create the Service File
      //Generate the Service Interface
      ServiceCreator sc = new ServiceCreator();
      sc.setPackageName("org.jboss.types");
View Full Code Here

Examples of org.jboss.ws.tools.WSDLToJava

   private void generateSEI(WSDLDefinitions wsdl)
   {
      String seidir = "tools";

      WSDLToJavaIntf wsdljava = new WSDLToJava();

      //Generate the SEI
      try
      {
         wsdljava.setTypeMapping(new LiteralTypeMapping());
         wsdljava.generateSEI(wsdl, createResourceFile(seidir));
      }
      catch (Exception e)
      {
         e.printStackTrace();
      }
View Full Code Here

Examples of org.jboss.ws.tools.WSDLToJava

      String filename = "StandardJavaTypesService_DOC_11.wsdl";
      File wsdlFile = getResourceFile("tools/wsdlfixture/" + filename);
      WSDLTypes types = null;
      try
      {
         WSDLToJavaIntf wsdljava = new WSDLToJava();
         wsdljava.setTypeMapping(new LiteralTypeMapping());
         WSDLDefinitions wsdl = wsdljava.convertWSDL2Java(wsdlFile.toURL());
         types = wsdl.getWsdlTypes();
      }
      catch (IOException e)
      {
         e.printStackTrace();
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.