Return-Path: Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 42095 invoked by uid 500); 8 Aug 2003 19:45:27 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 42016 invoked from network); 8 Aug 2003 19:45:26 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C35DE5.9FA583AF" Subject: [PATCH] remove soapenc namespace in WSDL unless use="encoded" Date: Fri, 8 Aug 2003 14:45:30 -0500 Message-ID: <2F9013BBE7AA2D41925865227016ACC742F6B7@exchange.webify.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] remove soapenc namespace in WSDL unless use="encoded" Thread-Index: AcNd5aAhfsfZBouqSWKVkzBwnH9KZg== From: "Mike Perham" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C35DE5.9FA583AF Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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. =20 Index: Emitter.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =3D=3D 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); > } ------_=_NextPart_001_01C35DE5.9FA583AF Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
I = noticed when I=20 generated a doc/lit WSDL from a java class that it included the soapenc = ns even=20 though that shouldn't technically ever be referenced.  This patch = cleans=20 that up.
 
Index:=20 Emitter.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
= RCS=20 file:=20 /home/cvspublic/xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.j= ava,v
retrieving=20 revision 1.97
diff -r1.97=20 Emitter.java
687,690c687,692
<     &nbs= p;  =20 def.addNamespace(Constants.NS_PREFIX_SOAP_ENC,
<   &= nbsp;           &n= bsp;         =20 Constants.URI_DEFAULT_SOAP_ENC);
<     &nb= sp;  =20 namespaces.putPrefix(Constants.URI_DEFAULT_SOAP_ENC,
<  &= nbsp;           &n= bsp;           &nb= sp;  =20 Constants.NS_PREFIX_SOAP_ENC);
---
>   if (use =3D=3D = Use.ENCODED) {
>=20    def.addNamespace(Constants.NS_PREFIX_SOAP_ENC,
> =        =20 Constants.URI_DEFAULT_SOAP_ENC);
>=20    namespaces.putPrefix(Constants.URI_DEFAULT_SOAP_ENC,>=20         =20 Constants.NS_PREFIX_SOAP_ENC);
> =   }
=00 ------_=_NextPart_001_01C35DE5.9FA583AF--