axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jordahl <t...@macromedia.com>
Subject RE: [PATCH] remove soapenc namespace in WSDL unless use="encoded"
Date Mon, 11 Aug 2003 15:13:15 GMT
 

Committed.

 

Thanks Mike

 

--
Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: Mike Perham [mailto:Mike.Perham@webifyinc.com] 
Sent: Friday, August 08, 2003 3:46 PM
To: axis-dev@ws.apache.org
Subject: [PATCH] remove soapenc namespace in WSDL unless use="encoded"

 

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.

 

Index: Emitter.java
===================================================================
RCS file: /home/cvspublic/xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java,v
retrieving revision 1.97
diff -r1.97 Emitter.java
687,690c687,692
<         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);
>   }


Mime
View raw message