axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/wsdl/symbolTable SchemaUtils.java
Date Tue, 25 Jan 2005 04:06:28 GMT
dims        2005/01/24 20:06:28

  Modified:    java/src/org/apache/axis/wsdl/symbolTable SchemaUtils.java
  Log:
  Fix for  AXIS-1446 - WSDL2Java ignores <xsd:any> elements in types
  from  Thanh-Phong Lam (phong.lam@t-online.de)
  
  Revision  Changes    Path
  1.51      +11 -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.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- SchemaUtils.java	11 Jan 2005 23:27:55 -0000	1.50
  +++ SchemaUtils.java	25 Jan 2005 04:06:28 -0000	1.51
  @@ -399,6 +399,17 @@
   
                           v.add(elem);
                       }
  +                } else if (localName.equals("any")) {
  +                    // Represent this as an element named any of type any type.
  +                    // This will cause it to be serialized with the element
  +                    // serializer.
  +                    Type type = symbolTable.getType(Constants.XSD_ANY);
  +                    ElementDecl elem = new ElementDecl(type,
  +                            Utils.findQName("",
  +                                    "any"));
  +
  +                    elem.setAnyElement(true);
  +                    v.add(elem);
                   }
               }
           }
  @@ -539,7 +550,6 @@
                   } else if (localName.equals("group")) {
                       v.addAll(processGroupNode(kid, symbolTable));
                   } else if (localName.equals("any")) {
  -                    
                       // Represent this as an element named any of type any type.
                       // This will cause it to be serialized with the element
                       // serializer.
  
  
  

Mime
View raw message