Package org.apache.axis2.jaxws.util

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


                            (this.getAnnoWebServiceServiceName() + ".wsdl").toLowerCase());

                    Definition wsdlDef = wsdlComposite.getRootWsdlDefinition();

                    try {
                        WSDL4JWrapper wsdl4jWrapper = new WSDL4JWrapper(dbc.getWsdlURL(), wsdlDef);
                        getServiceDescriptionImpl().setGeneratedWsdlWrapper(wsdl4jWrapper);
                    } catch (Exception e) {
                        throw ExceptionFactory.makeWebServiceException(
                                "EndpointDescriptionImpl: WSDLException thrown when attempting to instantiate WSDL4JWrapper ");
                    }
View Full Code Here


        URL catalogURL = JAXWSUtils.getOASISCatalogURL(configurationBaseUrl, classLoader, this.catalogName);
        if (catalogURL != null) {
            catalogManager.setCatalogFiles(catalogURL.toString());
        }
        URL wsdlURL = getWsdlURL(wsdlFile, configurationBaseUrl, classLoader);
        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

                   
                    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

                wsdlComposite.setWsdlFileName((this.getAnnoWebServiceServiceName() + ".wsdl").toLowerCase());
               
                Definition wsdlDef = wsdlComposite.getRootWsdlDefinition();
             
                try {
                  WSDL4JWrapper wsdl4jWrapper = new WSDL4JWrapper(dbc.getWsdlURL(), wsdlDef);
                  getServiceDescriptionImpl().setGeneratedWsdlWrapper(wsdl4jWrapper);
                } catch (Exception e) {
                  throw ExceptionFactory.makeWebServiceException("EndpointDescriptionImpl: WSDLException thrown when attempting to instantiate WSDL4JWrapper ");
                }
              } else {
View Full Code Here

              //This is either an implicit SEI, or a WebService Provider
              if (composite.getWsdlDefinition() != null) {
                  this.wsdlURL = composite.getWsdlURL();
                 
                  try {
                      this.wsdlWrapper = new WSDL4JWrapper(this.wsdlURL,
                              composite.getWsdlDefinition());
                  } catch (WSDLException e) {
                      throw ExceptionFactory.makeWebServiceException(Messages.getMessage("wsdlException", e.getMessage()), e);
                  }
              }
             
          } else if (composite.getWebServiceAnnot() != null) {
              //This impl class specifies an SEI...this is a special case. There is a bug
              //in the tooling that allows for the wsdllocation to be specifed on either the
              //impl. class, or the SEI, or both. So, we need to look for the wsdl as follows:
              //          1. If the Wsdl exists on the SEI, then check for it on the impl.
              //          2. If it is not found in either location, in that order, then generate
             
              DescriptionBuilderComposite seic =
                  getDBCMap().get(composite.getWebServiceAnnot().endpointInterface());
             
              try {
                  if (seic.getWsdlDefinition() != null) {
                      //set the sdimpl from the SEI composite
                      this.wsdlURL = seic.getWsdlURL();
                      this.wsdlWrapper = new WSDL4JWrapper(seic.getWsdlURL(), seic.getWsdlDefinition());
                  } else if (composite.getWsdlDefinition() != null) {
                      //set the sdimpl from the impl. class composite
                      this.wsdlURL = composite.getWsdlURL();
                      this.wsdlWrapper = new WSDL4JWrapper(composite.getWsdlURL(), composite.getWsdlDefinition());
                  }
              } catch (WSDLException e) {
                  throw ExceptionFactory.makeWebServiceException(Messages.getMessage("wsdlException", e.getMessage()), e);
              }
          }          
         
        //Deprecate this code block when MDQ is fully integrated
      } else if (wsdlURL != null) {
            try {
                this.wsdlWrapper = new WSDL4JWrapper(this.wsdlURL);
            }
            catch(FileNotFoundException e) {
              throw ExceptionFactory.makeWebServiceException(Messages.getMessage("wsdlNotFoundErr", e.getMessage()), e);
            }
            catch(UnknownHostException e) {
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

                            (this.getAnnoWebServiceServiceName() + ".wsdl").toLowerCase());

                    Definition wsdlDef = wsdlComposite.getRootWsdlDefinition();

                    try {
                        WSDL4JWrapper wsdl4jWrapper = new WSDL4JWrapper(dbc.getWsdlURL(), wsdlDef);
                        getServiceDescriptionImpl().setGeneratedWsdlWrapper(wsdl4jWrapper);
                    } catch (Exception e) {
                        throw ExceptionFactory.makeWebServiceException(
                                "EndpointDescriptionImpl: WSDLException thrown when attempting to instantiate WSDL4JWrapper ");
                    }
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

                                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

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.