Examples of WSDLWrapper


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

            // TODO: Change this to use WSDLToAxisServiceBuilder superclass
            // Note that the axis service builder takes only the localpart of the port qname.
            // TODO:: This should check that the namespace of the definition matches the namespace of the portQName per JAXRPC spec

            WSDLWrapper wrapper = getServiceDescriptionImpl().getWSDLWrapper();
            WSDL11ToAxisServiceBuilder serviceBuilder =
                    new WSDL11ToAxisServiceBuilder(
                            wrapper.getDefinition(),
                            getServiceDescription().getServiceQName(),
                            getPortQName().getLocalPart());

            //TODO: Temporary, please change the following log.info to log.debug
            log.info("Building AxisService from wsdl: " + wrapper.getWSDLLocation());
           
            if (getServiceDescriptionImpl().isDBCMap()) {
                //this.class.getClass().getClassLoader();
                URIResolverImpl uriResolver =
                        new URIResolverImpl(composite.getClassLoader());
View Full Code Here

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

                    }
                }
               
              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) {
                   
                    QName serviceNameNoTrailingSlash = new QName("");
                    // TODO: why in the world would we have to do this?
                    if (serviceName.getNamespaceURI().endsWith("/")) {
                        String ns = serviceName.getNamespaceURI();
                        serviceNameNoTrailingSlash = new QName(ns.substring(0, ns.length()-1), serviceName.getLocalPart());
                    }
                   
                    if ((wrapper.getService(serviceName) == null) && (wrapper.getService(serviceNameNoTrailingSlash) == null)) {
                        throw new IllegalStateException(
                            Messages.getMessage("MissingServiceName",
                                                serviceName.toString(),
                                                wsdlDocumentLocation));
                    }
                    if (portName != null) {
                        String[] ports = wrapper.getPorts(serviceName);
                        // search the other name.  TODO: again, why do we have to do this?
                        if (ports == null) {
                            ports = wrapper.getPorts(serviceNameNoTrailingSlash);
                        }
                        String portLocalName = portName.getLocalPart();
                        boolean found = false;

                        if (ports != null) {
View Full Code Here

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

                                    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

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

                    }
                }
               
              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) {
                   
                    QName serviceNameNoTrailingSlash = new QName("");
                    // TODO: why in the world would we have to do this?
                    if (serviceName.getNamespaceURI().endsWith("/")) {
                        String ns = serviceName.getNamespaceURI();
                        serviceNameNoTrailingSlash = new QName(ns.substring(0, ns.length()-1), serviceName.getLocalPart());
                    }
                   
                    if ((wrapper.getService(serviceName) == null) && (wrapper.getService(serviceNameNoTrailingSlash) == null)) {
                        throw new IllegalStateException(
                            Messages.getMessage("MissingServiceName",
                                                serviceName.toString(),
                                                wsdlDocumentLocation));
                    }
                    if (portName != null) {
                        String[] ports = wrapper.getPorts(serviceName);
                        // search the other name.  TODO: again, why do we have to do this?
                        if (ports == null) {
                            ports = wrapper.getPorts(serviceNameNoTrailingSlash);
                        }
                        String portLocalName = portName.getLocalPart();
                        boolean found = false;

                        if (ports != null) {
View Full Code Here

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

                                File file = new File(wsdlLocationPath);
                                URL url = file.toURL();
                                if(log.isDebugEnabled()){
                                    log.debug("Reading WSDL from URL:" +url.toString());
                                }
                                WSDLWrapper wsdlWrapper = new WSDL4JWrapper(url);
                                return wsdlWrapper.getDefinition();
                            }
                        });
            } catch (PrivilegedActionException e) {
                ExceptionFactory.makeWebServiceException(e.getException());
            }
View Full Code Here

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

            // TODO: Change this to use WSDLToAxisServiceBuilder superclass
            // Note that the axis service builder takes only the localpart of the port qname.
            // TODO:: This should check that the namespace of the definition matches the namespace of the portQName per JAXRPC spec

            WSDLWrapper wrapper = getServiceDescriptionImpl().getWSDLWrapper();
            WSDL11ToAxisServiceBuilder serviceBuilder =
                    new WSDL11ToAxisServiceBuilder(
                            wrapper.getDefinition(),
                            getServiceDescription().getServiceQName(),
                            getPortQName().getLocalPart());

            //TODO: Temporary, please change the following log.info to log.debug
            log.info("Building AxisService from wsdl: " + wrapper.getWSDLLocation());
           
            if (getServiceDescriptionImpl().isDBCMap()) {
                //this.class.getClass().getClassLoader();
                URIResolverImpl uriResolver =
                        new URIResolverImpl(composite.getClassLoader());
View Full Code Here

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

        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

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

        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

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

                                    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

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

            ServiceDescriptionWSDL sdw = (ServiceDescriptionWSDL)serviceDescList.get(0);
            assertNotNull(sdw);

            //System.out.println("DBCwithConfigContextTests ServiceDescriptionWSDL not null" );

            WSDLWrapper w = sdw.getWSDLWrapper();
            assertNotNull(w);
            //System.out.println("DBCwithConfigContextTests WSDLWrapper not null" );

            Definition d = w.getDefinition();
            assertNotNull(d);
            //System.out.println("DBCwithConfigContextTests Definition not null" );
            assertTrue(d.toString().startsWith("org.apache.axis2.wsdl.util.WSDLWrapperReloadImpl") );

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.