Examples of WsdlEnvironment


Examples of org.apache.muse.tools.generator.util.WsdlEnvironment

  public static void run(File[] files, String outputFileName, String outputRMDFileName, boolean overwrite, String uri, String address) throws FileNotFoundException {   
    Document[] wsdls = new Document[files.length];
    MetadataDescriptor[] metadatas = new MetadataDescriptor[files.length];

    for(int i=0; i < files.length; i++) {
      Environment env = new WsdlEnvironment(files[i].getAbsoluteFile().getParentFile());
      wsdls[i] = WsdlUtils.createWSDL(env, files[i].getName(), true);
     
      //
      // wsdl4j will get angry when it tries to resolve these because we're not
      // providing the base directory since we've already read them in. So
View Full Code Here

Examples of org.apache.muse.tools.generator.util.WsdlEnvironment

   */
  public Wsdl2Java(File wsdlFile, File descriptorFile, boolean overwrite, boolean generateCustomHeaders, File targetDirectory) throws Exception {
    Document descriptorDocument = getDescriptorDocument(descriptorFile);
    Document[] wsdlDocuments = null;
    MetadataDescriptor[] metadataDescriptors = null;
    WsdlEnvironment env = null;
   
    //
    // They can't both be null, otherwise what are we generating?
    //
    if(wsdlFile == null && descriptorFile == null) {
      handleErrorAndExit(_MESSAGES.get("NullWSDLBuiltinDescriptor"));
    }
   
    //
    // If we got a wsdlFile passed in then we are going to generate based off the wsdlFile
    // and use data in the deployment descriptor (if any is avaialable) as supplemental.
    // If the wsdlFie is null then we are generating from the deployment descriptor and
    // we need to load all of the wsdl files it contains.
    //
    if(wsdlFile != null) {
      env = new WsdlEnvironment(wsdlFile.getAbsoluteFile().getParentFile());
      wsdlDocuments = new Document[] { getWSDLDocument(wsdlFile.getName(), env) };
      metadataDescriptors = new MetadataDescriptor[] { getMetadataDescriptor(wsdlFile.getName(), env, wsdlDocuments[0]) };
    } else {
      env = new WsdlEnvironment(descriptorFile.getAbsoluteFile().getParentFile());
      wsdlDocuments = getWSDLDocuments(descriptorFile, descriptorDocument);
      metadataDescriptors = getMetadataDescriptors(descriptorFile, descriptorDocument);
    }
   
    _configuration = new ConfigurationData();
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.