Package org.apache.axis2.jaxws.util

Examples of org.apache.axis2.jaxws.util.WSDL4JWrapper


                    Definition wsdlDef = wsdlComposite.getRootWsdlDefinition();

                    try {
                        ConfigurationContext cc = dbc.getConfigurationContext();
                        WSDL4JWrapper wsdl4jWrapper = null;
                        if (cc != null) {
                            wsdl4jWrapper = new WSDL4JWrapper(dbc.getWsdlURL(), wsdlDef, cc);
                        } else {
                            wsdl4jWrapper = new WSDL4JWrapper(dbc.getWsdlURL(), wsdlDef, true, 2);
                        }
                        getServiceDescriptionImpl().setGeneratedWsdlWrapper(wsdl4jWrapper);
                    } catch (Exception e) {
                        throw ExceptionFactory.makeWebServiceException(Messages.getMessage("generateWSDLErr"),e);
                    }
View Full Code Here


                def = wsdlWrapper.getDefinition();
            } else {
                try {
                    if (myConfigContext != null) {
                        // Construct WSDL4JWrapper with configuration information
                        wsdlWrapper = new WSDL4JWrapper(wsdlDef,
                                                        myConfigContext);
                    } else {
                        // If there is no configuration, default to using a
                        // memory sensitive wrapper
                        wsdlWrapper = new WSDL4JWrapper(wsdlDef, true, 2);
                    }
                    def = wsdlWrapper.getDefinition();
                } catch (Exception ex) {
                    // absorb
                }
View Full Code Here

        try {
            if (log.isDebugEnabled() ) {
                log.debug("new WSDL4JWrapper(" + _wsdlURL.toString() + ",ConfigurationContext" );
            }
           
            wsdlWrapper = new WSDL4JWrapper(_wsdlURL, myConfigContext);
           
            if (wsdlWrapper != null) {
                wsdlDef = wsdlWrapper.getDefinition();
            }
        } catch (Exception e) {
View Full Code Here

        URL catalogURL = JAXWSUtils.getOASISCatalogURL(bundle, this.catalogName);
        if (catalogURL != null) {
            catalogManager.setCatalogFiles(catalogURL.toString());
        }
        URL wsdlURL = getWsdlURL(wsdlFile, bundle);
        WSDL4JWrapper wsdlWrapper = new WSDL4JWrapper(wsdlURL, this.configurationContext, catalogManager);
        Definition wsdlDefinition = wsdlWrapper.getDefinition();

        Service wsdlService = wsdlDefinition.getService(serviceQName);
        if (wsdlService == null) {
            throw new Exception("Service '" + serviceQName + "' not found in WSDL");
        }
View Full Code Here

            //This is not correct in OSGi environment, so considering that one Catalog instance will be shared per OASISCatalogManager
            //instance, we will call the parseCatalog(URL) to add the file
            //catalogManager.setCatalogFiles(catalogURL.toString());
        }
        URL wsdlURL = JAXWSUtils.getWsdlURL(bundle, wsdlFile);
        WSDL4JWrapper wsdlWrapper = new WSDL4JWrapper(wsdlURL, this.configurationContext, catalogManager);
        Definition wsdlDefinition = wsdlWrapper.getDefinition();

        Service wsdlService = wsdlDefinition.getService(serviceQName);
        if (wsdlService == null) {
            throw new Exception("Service '" + serviceQName + "' not found in WSDL");
        }
View Full Code Here

      URL url = getURLFromLocation(wsdlLocation);
     
      try{
      OASISCatalogManager catalogManager = new OASISCatalogManager();
            catalogManager.setCatalogFiles(getURLFromLocation(catalogFile).toString());
        WSDL4JWrapper w4j = new WSDL4JWrapper(url, catalogManager, false);
        w4j.getDefinition();
        fail("Should have received a WSDLException due to the invalid WSDL location "
              + "not redirected by the catalog.");
      } catch(WSDLException e) {
        // do nothing - successful test case
      } catch(Exception e){
View Full Code Here

      } catch (MalformedURLException e) {
          e.printStackTrace();
          fail();
      }
      try{
        WSDL4JWrapper w4j = new WSDL4JWrapper(url);
        Definition wsdlDef = w4j.getDefinition();
        assertNotNull(wsdlDef);
        Set<String> pkg = sri.readPackagesFromSchema(wsdlDef);
            TestLogger.logger.debug("Packages:");
        for(String pkgName:pkg){
                TestLogger.logger.debug(pkgName);
View Full Code Here

      URL url = getURLFromLocation(wsdlLocation);
     
      try{
      OASISCatalogManager catalogManager = new OASISCatalogManager();
      catalogManager.setCatalogFiles(getURLFromLocation(catalogFile).toString());
            WSDL4JWrapper w4j = new WSDL4JWrapper(url, catalogManager, false);
        Definition wsdlDef = w4j.getDefinition();
        assertNotNull(wsdlDef);  
        QName portTypeName = new QName("http://www.example.com/test/calculator",
                                   "CalculatorService",
                                   "");
        PortType portType = wsdlDef.getPortType(portTypeName);
View Full Code Here

        HashMap<String, DescriptionBuilderComposite> map = converter.produceDBC();
       
        DescriptionBuilderComposite composite = map.get(PlainService.class.getName());
       
        URL wsdlUrl = new URL("file:./" + wsdlLocation);
        WSDL4JWrapper wrapper = new WSDL4JWrapper(wsdlUrl, false, 0);
       
        composite.setwsdlURL(wsdlUrl);
        composite.setWsdlDefinition(wrapper.getDefinition());
       
        List<ServiceDescription> sdList = null;
        try {
            sdList = DescriptionFactory.createServiceDescriptionFromDBCMap(map);
        }
View Full Code Here

        HashMap<String, DescriptionBuilderComposite> map = converter.produceDBC();
       
        DescriptionBuilderComposite composite = map.get(DisabledService.class.getName());
       
        URL wsdlUrl = new URL("file:./" + wsdlLocation);
        WSDL4JWrapper wrapper = new WSDL4JWrapper(wsdlUrl, false, 0);
       
        composite.setwsdlURL(wsdlUrl);
        composite.setWsdlDefinition(wrapper.getDefinition());
       
        List<ServiceDescription> sdList = DescriptionFactory.createServiceDescriptionFromDBCMap(map);
        ServiceDescription sd = sdList.get(0);
       
        EndpointDescription ed = sd.getEndpointDescription(new QName(ns, disabledServicePortName));
View Full Code Here

TOP

Related Classes of org.apache.axis2.jaxws.util.WSDL4JWrapper

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.