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 Wed, 27 Feb 2002 13:13:13 GMT
gdaniels    02/02/27 05:13:13

  Modified:    java/src/org/apache/axis/message Tag: TomAndGlen
                        MessageElement.java
  Added:       java/src/org/apache/axis/encoding Tag: TomAndGlen
                        SimpleType.java
  Log:
  Set encoding style prefix when encoded, so it's available for inner elements.
  
  Check in SimpleType
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +66 -0     xml-axis/java/src/org/apache/axis/encoding/Attic/SimpleType.java
  
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.81.2.1  +11 -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.81
  retrieving revision 1.81.2.1
  diff -u -r1.81 -r1.81.2.1
  --- MessageElement.java	25 Feb 2002 17:38:16 -0000	1.81
  +++ MessageElement.java	27 Feb 2002 13:13:13 -0000	1.81.2.1
  @@ -88,6 +88,10 @@
       protected static Log log =
           LogFactory.getLog(MessageElement.class.getName());
   
  +    private static final Mapping encMapping =
  +            new Mapping(Constants.URI_CURRENT_SOAP_ENC,
  +                        "SOAP-ENC");
  +
       protected String    name ;
       protected String    prefix ;
       protected String    namespaceURI ;
  @@ -260,6 +264,12 @@
       public void setEncodingStyle(String encodingStyle) {
           if (encodingStyle == null) encodingStyle = "";
           this.encodingStyle = encodingStyle;
  +
  +        // Wherever we set the encoding style, map the SOAP-ENC prefix
  +        // just for fun.
  +        if (encodingStyle.equals(Constants.URI_CURRENT_SOAP_ENC)) {
  +            addMapping(encMapping);
  +        }
       }
   
       public MessageElement getParent() { return parent; }
  @@ -575,6 +585,7 @@
       }
   
       public void addMapping(Mapping map) {
  +        if (namespaces == null) namespaces = new ArrayList();
           namespaces.add(map);
       }
   }
  
  
  

Mime
View raw message