Examples of WSDLDefinitionsFactory


Examples of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory

      }
   }

   public final void testWsdlParser() throws Exception
   {
      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      File wsdlFile = new File("resources/jaxrpc/jbws1427/META-INF/wsdl/ProcessClaim.wsdl");
      assertTrue("File exists: " + wsdlFile, wsdlFile.exists());
     
      factory.parse(wsdlFile.toURL());
   }
View Full Code Here

Examples of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory

  {
    File wsdlFile = new File("resources/common/wsdl11/microsoft-interop/rpclit/BaseTypesRpcLit.wsdl");
    assertTrue(wsdlFile.exists());
   
   
    WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
    WSDLDefinitions wsdlDefinitions = factory.parse(wsdlFile.toURL());
    
    // check if the schema has been extracted
    WSDLTypes wsdlTypes = wsdlDefinitions.getWsdlTypes();
    assertNotNull(WSDLUtils.getSchemaModel(wsdlTypes));
  }
View Full Code Here

Examples of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory

   public void testIncludedSchema() throws Exception
   {
      File wsdlLocation = new File("resources/tools/wsdl11/TestServiceXsdInclude.wsdl");
      assertTrue(wsdlLocation.exists());

      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation.toURL());

      JBossXSModel xsModel = WSDLUtils.getSchemaModel(wsdlDefinitions.getWsdlTypes());
      XSTypeDefinition typeDefinition = xsModel.getTypeDefinition("SimpleUserType", "http://org.jboss.ws/jaxrpc/types");
      assertNotNull(typeDefinition);
   }
View Full Code Here

Examples of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory

   public void testImportedSchema() throws Exception
   {
      File wsdlLocation = new File("resources/tools/wsdl11/TestServiceXsdImport.wsdl");
      assertTrue(wsdlLocation.exists());

      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation.toURL());

      JBossXSModel xsModel = WSDLUtils.getSchemaModel(wsdlDefinitions.getWsdlTypes());
      XSTypeDefinition typeDefinition = xsModel.getTypeDefinition("SimpleUserType", "http://org.jboss.ws/jaxrpc/types");
      assertNotNull(typeDefinition);
   }
View Full Code Here

Examples of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory

   public void testDocLitSimple() throws Exception
   {
      File wsdlFile = new File("resources/common/wsdl11/DocLitSimple.wsdl");
      assertTrue(wsdlFile.exists());

      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdlDefinitions = factory.parse(wsdlFile.toURL());
      WSDLInterface wsdlInterface = wsdlDefinitions.getInterface(new QName(wsdlDefinitions.getTargetNamespace(), "JaxRpcTestService"));

      // check if the schema has been extracted
      WSDLTypes wsdlTypes = wsdlDefinitions.getWsdlTypes();
      assertNotNull(WSDLUtils.getSchemaModel(wsdlTypes));
View Full Code Here

Examples of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory

   {
      //File wsdlFile = new File("resources/wsdl11/DocLitSimple.wsdl");
      File wsdlFile = new File("resources/tools/wsdlfixture/CustomInterfaceService_RPC_11.wsdl")
      assertTrue(wsdlFile.exists());

      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdlExp = factory.parse(wsdlFile.toURL());
     
      WSDLDefinitions wsdlActual = factory.parse(wsdlFile.toURL());
      WSDLValidator validator = new WSDL11Validator();
      try
      {
        boolean bool = validator.validate(wsdlExp,wsdlActual);
        if(bool == false)
View Full Code Here

Examples of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory

   private void verifyRPC(String fileName) throws Exception
   {
      File wsdlFile = new File(fileName);
      assertTrue(wsdlFile.exists());

      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdlDefinitions = factory.parse(wsdlFile.toURL());
      WSDLInterface wsdlInterface = wsdlDefinitions.getInterface(new QName(wsdlDefinitions.getTargetNamespace(), "JaxRpcTestService"));

      // check if the schema has been extracted
      WSDLTypes wsdlTypes = wsdlDefinitions.getWsdlTypes();
      assertNotNull(WSDLUtils.getSchemaModel(wsdlTypes));
View Full Code Here

Examples of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory

   public void testDocLitCase() throws Exception
   {
      File wsdlFile = new File("resources/common/wsdl11/DocLitSimple.wsdl");
      assertTrue(wsdlFile.exists());

      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdlExp = factory.parse(wsdlFile.toURL());
     
      WSDLDefinitions wsdlActual = factory.parse(wsdlFile.toURL());
      WSDLValidator validator = new WSDL11Validator();
      try
      {
        boolean bool = validator.validate(wsdlExp,wsdlActual);
        if(bool == false)
View Full Code Here

Examples of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory

   public void testEventSourceBinding() throws Exception
   {
      File wsdlFile = new File("resources/common/wsdl11/inherit/wind_inherit.wsdl");
      assertTrue(wsdlFile.exists());

      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdlDefinitions = factory.parse(wsdlFile.toURL());

      WSDLService service = wsdlDefinitions.getService(new QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "EventingService"));
      assertNotNull(service);
      WSDLEndpoint[] endpoints = service.getEndpoints();
      for (int i = 0; i < endpoints.length; i++)
View Full Code Here

Examples of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory

   public void testSwaMessages() throws Exception
   {
      File wsdlFile = new File("resources/common/wsdl11/SwaTestService.wsdl");
      assertTrue(wsdlFile.exists());

      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdlDefinitions = factory.parse(wsdlFile.toURL());
      assertNotNull(wsdlDefinitions); // should throw an Exception when SWA parts are not skipped
   }
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.