Package org.jboss.ws.metadata.wsdl

Examples of org.jboss.ws.metadata.wsdl.WSDLDefinitions


   }
  
   private void validateGeneratedWSDL(File wsdlFile, File expectedWsdlFile) throws Exception
   {
      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdl = factory.parse(wsdlFile.toURL());
      WSDLDefinitions expWsdl = factory.parse(expectedWsdlFile.toURL());
      assertNotNull(wsdl);
      assertNotNull(expWsdl);
      WSDLValidator validator = new WSDLValidator();
      assertTrue(validator.validate(expWsdl,wsdl));
   }
View Full Code Here


   public void testWSDLAccess() throws MalformedURLException
   {
      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
      assertNotNull(wsdlDefinitions);
   }
View Full Code Here

   public void testWSDLAccess() throws MalformedURLException
   {
      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
      assertNotNull(wsdlDefinitions);
   }
View Full Code Here

   public void testSimpleCase() throws Exception
   {
      WSDLToJava wsdlJava = new WSDLToJava();
      File wsdlFile = new File("resources/tools/jbws-161/wscompile/simple/wsdl/HelloWsService.wsdl");
      wsdlJava.setTypeMapping(new LiteralTypeMapping());
      WSDLDefinitions wsdl = wsdlJava.convertWSDL2Java(wsdlFile.toURL());
      wsdlJava.generateSEI(wsdl, new File("tools/jbws-160/jbossws/simple/sei"));

      //Create the Service File
      //Generate the Service Interface
      ServiceCreator sc = new ServiceCreator();
View Full Code Here

   public void testCustomCase() throws Exception
   {
      WSDLToJava wsdlJava = new WSDLToJava();
      File wsdlFile = new File("resources/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, new File("tools/jbws-160/jbossws/custom/sei"));

      //Create the Service File
      //Generate the Service Interface
View Full Code Here

      jwsdl.setServiceName(sname);
      jwsdl.setTargetNamespace("http://org.jboss.ws/samples");
      jwsdl.setTypeNamespace("http://org.jboss.ws/samples/types");
      jwsdl.setStyle(Style.DOCUMENT);
      jwsdl.addFeature(WSToolsConstants.WSTOOLS_FEATURE_RESTRICT_TO_TARGET_NS, true);
      WSDLDefinitions wsdl = jwsdl.generate(seiClass);

      Writer fw = IOUtils.getCharsetFileWriter(new File(wsdlPath), Constants.DEFAULT_XML_CHARSET);
      new WSDLWriter(wsdl).write(fw, Constants.DEFAULT_XML_CHARSET);
      fw.close();
View Full Code Here

{
   /** Test a SEI that contains JAXRPC primitive types */
   public void testPrimitiveTypes() throws Exception
   {
      Class seiClass = PrimitiveTypes.class;
      WSDLDefinitions wsdlDefinitions = getWSDLDefinitions(seiClass, "PrimitiveTypesService_RPC_11.wsdl");
      String wsdlString = getWSDLAsString(wsdlDefinitions);
      //System.out.println(wsdlString);
   }
View Full Code Here

  
   /** Test a SEI that contains primitive array types */
   public void testPrimitiveArrayTypes() throws Exception
   {
      Class seiClass = PrimitiveArrayTypes.class;
      WSDLDefinitions wsdlDefinitions = getWSDLDefinitions(seiClass, "arrays/PrimitiveArrayTypesService_RPC_11.wsdl");
      String wsdlString = getWSDLAsString(wsdlDefinitions);
     
      writeWSDL(wsdlDefinitions, "PrimitiveArrayTypesService_RPC_11.wsdl");         
   }
View Full Code Here

   /** Test a SEI that contains JAXRPC java standard types */
   public void testStandardJavaTypes() throws Exception
   {
      Class seiClass = StandardJavaTypes.class;
      WSDLDefinitions wsdlDefinitions = getWSDLDefinitions(seiClass, "StandardJavaTypesService_RPC_11.wsdl");
      String wsdlString = getWSDLAsString(wsdlDefinitions);
      //System.out.println(wsdlString);
      writeWSDL(wsdlDefinitions, "StandardJavaTypesService_RPC_11.wsdl");
   }
View Full Code Here

   public void testW3CSample() throws Exception
   {
      File wsdlFile = new File("resources/tools/wsdlfixture/W3CExample_DOC_11.wsdl");
      assertTrue(wsdlFile.exists());
      WSDLDefinitions wsdlDefinitions = getWSDLDefinitions(wsdlFile);
   }
View Full Code Here

TOP

Related Classes of org.jboss.ws.metadata.wsdl.WSDLDefinitions

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.