axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/wsdl/symbolTable SchemaUtils.java
Date Fri, 02 Jul 2004 13:23:08 GMT
ias         2004/07/02 06:23:08

  Modified:    java/src/org/apache/axis/wsdl/symbolTable SchemaUtils.java
  Log:
  Improve addAttributeToVector so that a global attribute gives a proper type to its users.
  
  Revision  Changes    Path
  1.43      +7 -1      ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SchemaUtils.java
  
  Index: SchemaUtils.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SchemaUtils.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- SchemaUtils.java	5 Jun 2004 11:05:49 -0000	1.42
  +++ SchemaUtils.java	2 Jul 2004 13:23:07 -0000	1.43
  @@ -39,7 +39,7 @@
   public class SchemaUtils {
   
       /** Field VALUE_QNAME */
  -    static final QName VALUE_QNAME = Utils.findQName("", "value");
  +    static final QName VALUE_QNAME = Utils.findQName("", "_value");
   
       /**
        * This method checks mixed=true attribute is set either on
  @@ -1566,6 +1566,12 @@
           TypeEntry type = symbolTable.getTypeEntry(attributeType,
                   forElement.value);
   
  +        // Try to get the corresponding global attribute ElementEntry
  +        // from the symbol table.
  +        if (type instanceof org.apache.axis.wsdl.symbolTable.Element) {
  +        	type = ((org.apache.axis.wsdl.symbolTable.Element) type).getRefType();
  +        }
  +        
           // add type and name to vector, skip it if we couldn't parse it
           // XXX - this may need to be revisited.
           if ((type != null) && (attributeName != null)) {
  
  
  

Mime
View raw message