axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bu...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl/toJava Emitter.java
Date Mon, 28 Jan 2002 16:26:38 GMT
butek       02/01/28 08:26:37

  Modified:    java/lib wsdl4j.jar
               java/src/org/apache/axis/client Service.java
               java/src/org/apache/axis/wsdl/toJava Emitter.java
  Log:
  Two things:
  1.  Got the latest wsdl4j.jar with the setFeature("verbose"... changes and made the
  appropriate changes in our code.
  2.  Fixed a uri context problem (nothing to do with #1.  Just a simple fix that happened
   to affect a common file).
  
  Revision  Changes    Path
  1.8       +191 -167  xml-axis/java/lib/wsdl4j.jar
  
  	<<Binary file>>
  
  
  1.37      +1 -2      xml-axis/java/src/org/apache/axis/client/Service.java
  
  Index: Service.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Service.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- Service.java	27 Jan 2002 02:43:35 -0000	1.36
  +++ Service.java	28 Jan 2002 16:26:37 -0000	1.37
  @@ -211,8 +211,7 @@
               // Start by reading in the WSDL using WSDL4J
               WSDLReader           reader = WSDLFactory.newInstance()
                                                        .newWSDLReader();
  -            // No longer supported
  -            //reader.setFeature("verbose", false);
  +            reader.setFeature("javax.wsdl.verbose", false);
               Definition           def    = reader.readWSDL( null, doc );
   
               this.wsdlLocation   = null ;
  
  
  
  1.13      +2 -11     xml-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Emitter.java	27 Jan 2002 02:43:35 -0000	1.12
  +++ Emitter.java	28 Jan 2002 16:26:37 -0000	1.13
  @@ -133,15 +133,7 @@
           if (bVerbose)
               System.out.println(JavaUtils.getMessage("parsing00", uri));
   
  -        // calculate baseURI so that imported relative URI's work
  -        int lastSeparator = uri.lastIndexOf(File.separatorChar);
  -        int lastSlash = uri.lastIndexOf('/');
  -        int index = (lastSlash > lastSeparator) ? lastSlash : lastSeparator;
  -        String baseURI = null;
  -        if (index > 0) {
  -            baseURI = uri.substring(0, index + 1);
  -        }
  -        emit(baseURI, XMLUtils.newDocument(uri));
  +        emit(uri, XMLUtils.newDocument(uri));
       } // emit
   
       /**
  @@ -151,8 +143,7 @@
        */
       public void emit(String context, Document doc) throws IOException, WSDLException {
           WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
  -        // The verbose option is no longer supported.
  -        //reader.setFeature("verbose", bVerbose);
  +        reader.setFeature("javax.wsdl.verbose", bVerbose);
           def = reader.readWSDL(context, doc);
           this.doc = doc;
           namespaces = new Namespaces(outputDir);
  
  
  

Mime
View raw message