Package org.apache.axis2.jaxws.util

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


      } 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


        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

                   
                    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, null, true);
        }
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, null, true);
        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, null, true);
        }
View Full Code Here

        DescriptionBuilderComposite composite = map.get(CompleteService.class.getName());
       
       
        //Register
        URL wsdlUrl = new URL("file:./" + wsdlLocation);
        WSDL4JWrapper wrapper = new WSDL4JWrapper(wsdlUrl, false, 0);
       
        composite.setwsdlURL(wsdlUrl);
        composite.setWsdlDefinition(wrapper.getDefinition());
        ConfigurationContext configCtx = null;
       
        //Create ConfigContext here, we need it so we can register the WSDLAddressingExtensionValditor.
        try{
            List<ServiceDescription> sdList = DescriptionFactory.createServiceDescriptionFromDBCMap(map, null, false);
View Full Code Here

            EndpointReferenceUtils.addService(axis2EPR, serviceName, portName, addressingNamespace);

            if (wsdlDocumentLocation != null) {
              URL wsdlURL = new URL(wsdlDocumentLocation);
              // This is a temporary usage, so use a memory sensitive wrapper
                WSDLWrapper wrapper = new WSDL4JWrapper(wsdlURL, true, 2);
             
                if (serviceName != null) {
                    if (wrapper.getService(serviceName) == null) {
                        throw new IllegalStateException(
                            Messages.getMessage("MissingServiceName",
                                                serviceName.toString(),
                                                wsdlDocumentLocation));
                    }
                    if (portName != null) {
                        String[] ports = wrapper.getPorts(serviceName);
                        String portLocalName = portName.getLocalPart();
                        boolean found = false;

                        if (ports != null) {
                            for (String port : ports) {
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.