Package org.jboss.ws.tools

Examples of org.jboss.ws.tools.Configuration$ParameterConfig


      }

      if (configURL == null)
         throw new IllegalArgumentException("Cannot load config from: " + configLocation);

      Configuration config = new Configuration();
      InputStream is = configURL.openStream();
      try
      {
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         unmarshaller.setNamespaceAware(true);
         unmarshaller.setSchemaValidation(true);
         unmarshaller.setValidation(true);
         unmarshaller.unmarshal(is, this, config);
      }
      catch (JBossXBException ex)
      {
         IOException ioex = new IOException("Cannot parse config: " + ex.getMessage());
         ioex.initCause(ex);
         throw ioex;
      }
      finally
      {
         is.close();
      }

      if (config.getJavaToWSDLConfig(false) == null && config.getWSDLToJavaConfig(false) == null)
         throw new WSException("Invalid configuration file, either " + JAVA_WSDL_TAG + ", or " + WSDL_JAVA_TAG + " must be present");

      log.trace("Exit readConfig");
      return config;
   }
View Full Code Here


      }

      if (configURL == null)
         throw new IllegalArgumentException("Cannot load config from: " + configLocation);

      Configuration config = new Configuration();
      InputStream is = configURL.openStream();
      try
      {
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         unmarshaller.setNamespaceAware(true);
         unmarshaller.setSchemaValidation(true);
         unmarshaller.setValidation(true);
         unmarshaller.unmarshal(is, this, config);
      }
      catch (JBossXBException ex)
      {
         IOException ioex = new IOException("Cannot parse config: " + ex.getMessage());
         ioex.initCause(ex);
         throw ioex;
      }
      finally
      {
         is.close();
      }

      if (config.getJavaToWSDLConfig(false) == null && config.getWSDLToJavaConfig(false) == null)
         throw new WSException("Invalid configuration file, either " + JAVA_WSDL_TAG + ", or " + WSDL_JAVA_TAG + " must be present");

      log.trace("Exit readConfig");
      return config;
   }
View Full Code Here

{
   public void testJavaToWSDL() throws Exception
   {
      String j2wConfigFile = "resources/tools/config/java2wsdl.xml";
      ToolsSchemaConfigReader configReader = new ToolsSchemaConfigReader();
      Configuration config = configReader.readConfig(j2wConfigFile);
      assertNotNull("config is null?", config);
      checkJavaToWSDL(config);
   }
View Full Code Here

   public void testWSDLToJava() throws Exception
   {
      String w2jConfigFile = "resources/tools/config/wsdl2java.xml";
      ToolsSchemaConfigReader configReader = new ToolsSchemaConfigReader();
      Configuration config = configReader.readConfig(w2jConfigFile);
      assertNotNull("config is null?", config);
      checkWSDLToJava(config);
   }
View Full Code Here

{
   public void testJavaToWSDL() throws Exception
   {
      String j2wConfigFile = getResourceFile("tools/config/java2wsdl.xml").getAbsolutePath();
      ToolsSchemaConfigReader configReader = new ToolsSchemaConfigReader();
      Configuration config = configReader.readConfig(j2wConfigFile);
      assertNotNull("config is null?", config);
      checkJavaToWSDL(config);
   }
View Full Code Here

   public void testWSDLToJava() throws Exception
   {
      String w2jConfigFile = getResourceFile("tools/config/wsdl2java.xml").getAbsolutePath();
      ToolsSchemaConfigReader configReader = new ToolsSchemaConfigReader();
      Configuration config = configReader.readConfig(w2jConfigFile);
      assertNotNull("config is null?", config);
      checkWSDLToJava(config);
   }
View Full Code Here

      }

      if (configURL == null)
         throw new IllegalArgumentException("Cannot load config from: " + configLocation);

      Configuration config = new Configuration();
      InputStream is = configURL.openStream();
      try
      {
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         unmarshaller.setNamespaceAware(true);
         unmarshaller.setSchemaValidation(true);
         unmarshaller.setValidation(true);
         unmarshaller.unmarshal(is, this, config);
      }
      catch (JBossXBException ex)
      {
         IOException ioex = new IOException("Cannot parse config: " + ex.getMessage());
         ioex.initCause(ex);
         throw ioex;
      }
      finally
      {
         is.close();
      }

      if (config.getJavaToWSDLConfig(false) == null && config.getWSDLToJavaConfig(false) == null)
         throw new WSException("Invalid configuration file, either " + JAVA_WSDL_TAG + ", or " + WSDL_JAVA_TAG + " must be present");

      log.trace("Exit readConfig");
      return config;
   }
View Full Code Here

      }

      if (configURL == null)
         throw new IllegalArgumentException("Cannot load config from: " + configLocation);

      Configuration config = new Configuration();
      InputStream is = configURL.openStream();
      try
      {
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         unmarshaller.setNamespaceAware(true);
         unmarshaller.setSchemaValidation(true);
         unmarshaller.setValidation(true);
         unmarshaller.unmarshal(is, this, config);
      }
      catch (JBossXBException ex)
      {
         IOException ioex = new IOException("Cannot parse config: " + ex.getMessage());
         ioex.initCause(ex);
         throw ioex;
      }
      finally
      {
         is.close();
      }

      if (config.getJavaToWSDLConfig(false) == null && config.getWSDLToJavaConfig(false) == null)
         throw new WSException("Invalid configuration file, either " + JAVA_WSDL_TAG + ", or " + WSDL_JAVA_TAG + " must be present");

      log.trace("Exit readConfig");
      return config;
   }
View Full Code Here

/*     */     }
/*     */
/* 126 */     if (configURL == null) {
/* 127 */       throw new IllegalArgumentException("Cannot load config from: " + configLocation);
/*     */     }
/* 129 */     Configuration config = new Configuration();
/* 130 */     InputStream is = configURL.openStream();
/*     */     try
/*     */     {
/* 133 */       Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/* 134 */       unmarshaller.setNamespaceAware(true);
/* 135 */       unmarshaller.setSchemaValidation(true);
/* 136 */       unmarshaller.setValidation(true);
/* 137 */       unmarshaller.unmarshal(is, this, config);
/*     */     }
/*     */     catch (JBossXBException ex)
/*     */     {
/* 141 */       IOException ioex = new IOException("Cannot parse config: " + ex.getMessage());
/* 142 */       ioex.initCause(ex);
/* 143 */       throw ioex;
/*     */     }
/*     */     finally
/*     */     {
/* 147 */       is.close();
/*     */     }
/*     */
/* 150 */     if ((config.getJavaToWSDLConfig(false) == null) && (config.getWSDLToJavaConfig(false) == null)) {
/* 151 */       throw new WSException("Invalid configuration file, either java-wsdl, or wsdl-java must be present");
/*     */     }
/* 153 */     log.trace("Exit readConfig");
/* 154 */     return config;
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.ws.tools.Configuration$ParameterConfig

Copyright © 2018 www.massapicom. 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.