axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/message MessageElement.java
Date Mon, 04 Nov 2002 16:32:06 GMT
gdaniels    2002/11/04 08:32:05

  Modified:    java/src/org/apache/axis/message MessageElement.java
  Log:
  Make sure to write out namespaces which are registered on a
  MessageElement when serializing it.
  
  Revision  Changes    Path
  1.132     +7 -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.131
  retrieving revision 1.132
  diff -u -r1.131 -r1.132
  --- MessageElement.java	19 Oct 2002 15:37:34 -0000	1.131
  +++ MessageElement.java	4 Nov 2002 16:32:05 -0000	1.132
  @@ -778,6 +778,13 @@
           if (prefix != null)
               context.registerPrefixForURI(prefix, namespaceURI);
   
  +        if (namespaces != null) {
  +            for (Iterator i = namespaces.iterator(); i.hasNext();) {
  +                Mapping mapping = (Mapping) i.next();
  +                context.registerPrefixForURI(mapping.getPrefix(), mapping.getNamespaceURI());
  +            }
  +        }
  +
           if (objectValue != null) {
               context.serialize(new QName(namespaceURI, name),
                                 attributes,
  
  
  

Mime
View raw message