Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 64953 invoked by uid 500); 9 Jan 2002 20:43:10 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 64944 invoked by uid 500); 9 Jan 2002 20:43:09 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 9 Jan 2002 20:43:05 -0000 Message-ID: <20020109204305.4469.qmail@icarus.apache.org> From: dims@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/java/src/org/apache/axis/message MessageElement.java SOAPEnvelope.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N dims 02/01/09 12:43:05 Modified: java/src/org/apache/axis/message MessageElement.java SOAPEnvelope.java Log: - Reuse Attributes stored in MessageElement. - Helper method for adding more namespaces if necessary. Revision Changes Path 1.69 +4 -0 xml-axis/java/src/org/apache/axis/message/MessageElement.java Index: MessageElement.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/MessageElement.java,v retrieving revision 1.68 retrieving revision 1.69 diff -u -r1.68 -r1.69 --- MessageElement.java 9 Jan 2002 14:48:18 -0000 1.68 +++ MessageElement.java 9 Jan 2002 20:43:05 -0000 1.69 @@ -487,4 +487,8 @@ return( null ); } } + + public void addMapping(Mapping map) { + namespaces.add(map); + } } 1.48 +5 -5 xml-axis/java/src/org/apache/axis/message/SOAPEnvelope.java Index: SOAPEnvelope.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SOAPEnvelope.java,v retrieving revision 1.47 retrieving revision 1.48 diff -u -r1.47 -r1.48 --- SOAPEnvelope.java 3 Jan 2002 17:12:36 -0000 1.47 +++ SOAPEnvelope.java 9 Jan 2002 20:43:05 -0000 1.48 @@ -84,7 +84,7 @@ public Vector bodyElements = new Vector(); public Vector trailers = new Vector(); public String encodingStyleURI = null; - + // This is a hint to any service description to tell it what // "type" of message we are. This might be "request", "response", // or anything else your particular service descripton requires. @@ -325,17 +325,17 @@ } Enumeration enum; - AttributesImpl attrs = null; if (encodingStyleURI != null) { - attrs = new AttributesImpl(); - attrs.addAttribute(Constants.URI_SOAP_ENV, + if(attributes == null) + attributes = new AttributesImpl(); + attributes.addAttribute(Constants.URI_SOAP_ENV, Constants.ATTR_ENCODING_STYLE, "SOAP-ENV:" + Constants.ATTR_ENCODING_STYLE, "CDATA", encodingStyleURI); } context.startElement(new QName(Constants.URI_SOAP_ENV, - Constants.ELEM_ENVELOPE), attrs); + Constants.ELEM_ENVELOPE), attributes); if (category.isDebugEnabled()) category.debug(headers.size() + " "