You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2001/12/06 18:53:18 UTC

cvs commit: xml-axis/java/src/org/apache/axis/wsdl SchemaUtils.java

butek       01/12/06 09:53:18

  Modified:    java/src/org/apache/axis/wsdl SchemaUtils.java
  Log:
  Made this change so anonymous complex types work.  In the following, the
  complexType under the stock_quote element is anonymous.
  
      <complexType name="getRTQuoteResponse">
        <sequence>
          <element name="stock_quote">
            <complexType>
              <sequence>
                <element name="symbol" type="xsd:string"/>
              </sequence>
            </complexType>
          </element>
        </sequence>
      </complexType>
  
  Revision  Changes    Path
  1.3       +1 -1      xml-axis/java/src/org/apache/axis/wsdl/SchemaUtils.java
  
  Index: SchemaUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/SchemaUtils.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SchemaUtils.java	2001/11/30 21:53:33	1.2
  +++ SchemaUtils.java	2001/12/06 17:53:18	1.3
  @@ -135,7 +135,7 @@
   
                   // Process each of the element nodes under the group node
                   Vector v = new Vector();
  -                NodeList elements = children.item(1).getChildNodes();
  +                NodeList elements = groupNode.getChildNodes();
                   for (int i=0; i < elements.getLength(); i++) {
                       QName elementKind = Utils.getNodeQName(elements.item(i));
                       if (elementKind != null &&