Package org.apache.axis2.jaxws.util

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


        e.printStackTrace();
        fail();
      }
      File file = new File(wsdlLocation);
      url = file.toURL();
      WSDLWrapper wsdlWrapper = new WSDL4JWrapper(url);
      org.apache.axis2.jaxws.wsdl.SchemaReader sr= new SchemaReaderImpl();
      Set<String> set= sr.readPackagesFromSchema(wsdlWrapper.getDefinition());
      assertNotNull(set);
      Iterator<String> iter = set.iterator();
      while(iter.hasNext()){
        String pkg = iter.next();
                TestLogger.logger.debug("Package = " + pkg);
View Full Code Here


        e.printStackTrace();
        fail();
      }
      File file = new File(wsdlLocation);
      url = file.toURL();
      WSDLWrapper wsdlWrapper = new WSDL4JWrapper(url);
      org.apache.axis2.jaxws.wsdl.SchemaReader sr= new SchemaReaderImpl();
      Set<String> set= sr.readPackagesFromSchema(wsdlWrapper.getDefinition());
      assertNotNull(set);
      Iterator<String> iter = set.iterator();
      while(iter.hasNext()){
                TestLogger.logger.debug("Package =" + iter.next());
      }
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

                                    log.debug("Reading WSDL from URL:" +url.toString());
                                }
                                // This is a temporary wsdl and we use it to dig into the schemas,
                                // Thus the memory limit is set to false.  It will be discarded after it is used
                                // by the PackageSetBuilder implementation.
                                WSDLWrapper wsdlWrapper = new WSDL4JWrapper(url, false, 0);
                                return wsdlWrapper.getDefinition();
                            }
                        });
            } catch (PrivilegedActionException e) {
                // Swallow and continue
                if (log.isDebugEnabled()) {
View Full Code Here

                   
                    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

                if (log.isDebugEnabled()) {
                    log.debug("@WebService wsdlLocation is " + wsdlLocation);
                }
               
                Definition def = null;
                WSDL4JWrapper wsdl4j = null;
                try {
                    File file = new File(wsdlLocation);
                    URL url = file.toURL();
                    wsdl4j = new WSDL4JWrapper(url, true, 2)// In this context, limit the wsdl memory
                    def = wsdl4j.getDefinition();
                } catch (Throwable t) {
                    if (log.isDebugEnabled()) {
                        log.debug("Error occurred while loading WSDL.  " +
                                        "Procesing continues without AttachmentDescription " +
                                        "information. " + t);
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

        HashMap<String, DescriptionBuilderComposite> map = converter.produceDBC();
       
        DescriptionBuilderComposite composite = map.get(DefaultService.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

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.