Package org.apache.axis2.jaxws.util

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


            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

            // 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

        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

            // 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

                                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

            String charSetEncoding = BuilderUtil.getCharSetEncoding(contentTypeStr);
            msgContext.setProperty(
                    Constants.Configuration.CHARACTER_SET_ENCODING, charSetEncoding);
            boolean eprFound = false;
            if (endpointsConfiguration != null) {
                URLEndpoint epr = endpointsConfiguration.getEndpoint(request.getRequestLine().getUri());
                if (epr != null) {
                    eprFound = true;
                    String type = TransportUtils.getContentType(contentTypeStr, msgContext);
                    msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE, type);
                    epr.setParameters(msgContext);

                    Builder builder = epr.getBuilder(type);
                    if (HTTPTransportUtils.isRESTRequest(contentTypeStr)) {
                        RESTUtil.processPOSTRequest(msgContext, is, os,
                                request.getRequestLine().getUri(), contentType, builder, isRestDispatching);
                    } else {
View Full Code Here

            String contentTypeStr = contentType != null ?
                    contentType.getValue() : inferContentType();

            boolean eprFound = false;
            if (endpointsConfiguration != null) {
                URLEndpoint epr = endpointsConfiguration.getEndpoint(request.getRequestLine().getUri());
                if (epr != null) {
                    eprFound = true;
                    String type = TransportUtils.getContentType(contentTypeStr, msgContext);
                    msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE, type);

                    epr.setParameters(msgContext);

                    Builder builder = epr.getBuilder(type);
                    RESTUtil.processGetAndDeleteRequest(
                            msgContext, os, request.getRequestLine().getUri(),
                            request.getFirstHeader(HTTP.CONTENT_TYPE), builder,
                            method, isRestDispatching);
                }
View Full Code Here

        params = getListenerParameters();


        param = transportIn.getParameter(NhttpConstants.ENDPOINTS_CONFIGURATION);
        if (param != null && param.getValue() != null) {
            endpoints = new URLEndpointsConfigurationFactory().create(param.getValue().toString());
        }
    }
View Full Code Here

TOP

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

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.