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 2004/01/30 15:05:15 UTC

DO NOT REPLY [Bug 26548] New: - local xsd:group constructs are not processed properly

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26548>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26548

local xsd:group constructs are not processed properly

           Summary: local xsd:group constructs are not processed properly
           Product: Axis
           Version: current (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: Andrei.Iltchenko@nl.compuware.com


WSDL2Java deviates from XML Schema in trying to treat local xsd:group 
declarations as if they had child element content instead of trying to follow 
the 'ref' attribute, as should be the case.

As a result of that the content model of a complex type having a reference to a 
global group is not correctly established. The attached wsdl document provides 
further information on the matter. In particular, it features the following two 
xsd definitions:

      <xsd:group name="myGroup">
        <xsd:sequence>
          <xsd:element name="areaCode" type="xsd:int"/>
          <xsd:element name="exchange" type="xsd:string"/>
          <xsd:element name="number" type="xsd:string"/>
        </xsd:sequence>
      </xsd:group>

      <xsd:complexType name="phone">
        <xsd:group ref="typens:myGroup"/>
      </xsd:complexType>


As a result of the problem, the JavaBean generated by Axis out of the 'phone' 
complex type is missing properties for the three elements referenced through 
the group particle.