axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl/fromJava Emitter.java
Date Mon, 11 Aug 2003 15:05:25 GMT
tomj        2003/08/11 08:05:25

  Modified:    java/src/org/apache/axis/wsdl/fromJava Emitter.java
  Log:
  Fix from Mike Perham [Mike.Perham@webifyinc.com]:
    I noticed when I generated a doc/lit WSDL from a java class that it included
    the soapenc ns even though that shouldn't technically ever be referenced.
    This patch cleans that up.
  
  Bug 22301.
  
  Revision  Changes    Path
  1.98      +7 -4      xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java,v
  retrieving revision 1.97
  retrieving revision 1.98
  diff -u -r1.97 -r1.98
  --- Emitter.java	28 Jul 2003 16:31:05 -0000	1.97
  +++ Emitter.java	11 Aug 2003 15:05:25 -0000	1.98
  @@ -684,10 +684,13 @@
           namespaces.putPrefix(Constants.NS_URI_WSDL11,
                                Constants.NS_PREFIX_WSDL);
   
  -        def.addNamespace(Constants.NS_PREFIX_SOAP_ENC,
  -                         Constants.URI_DEFAULT_SOAP_ENC);
  -        namespaces.putPrefix(Constants.URI_DEFAULT_SOAP_ENC,
  -                             Constants.NS_PREFIX_SOAP_ENC);
  +        if (use == Use.ENCODED)
  +        {
  +            def.addNamespace(Constants.NS_PREFIX_SOAP_ENC,
  +                             Constants.URI_DEFAULT_SOAP_ENC);
  +            namespaces.putPrefix(Constants.URI_DEFAULT_SOAP_ENC,
  +                                 Constants.NS_PREFIX_SOAP_ENC);
  +        }
   
           def.addNamespace(Constants.NS_PREFIX_SCHEMA_XSD,
                            Constants.URI_DEFAULT_SCHEMA_XSD);
  
  
  

Mime
View raw message