You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Alastair FETTES <af...@mdacorporation.com> on 2006/09/19 19:17:28 UTC

[AxisCPP] Bug in code generation for array types

Using the following sample XSD you can cause the code generation bug:

<xs:element name="fooParent">
    <xs:complexType>
        <xs:element ref="tns:fooElement" minOccurs="0" maxOccurs="1"/>
        <xs:element ref="tns:barElement" minOccurs="0" maxOccurs="1"/>
    <xs:complexType>
</xs:element>

<xs:element name="fooElement" type="tns:fooListType"/>
<xs:element name="barElement" type="tns:fooListType"/>

<xs:complexType name="fooListType">
    <xs:sequence>
        <!-- some content here -->
    </xs:sequence>
</xs:complexType>

fooListType_Array.hpp/.cpp is correctly created (and used correctly).
However, in the portType generated class file it attempts to #include
fooElement_Array.hpp.  This is incorrect and is a bug.

Cheers,

Alastair Fettes

This e-mail and any attachments are intended solely for the use of the
intended recipient(s) and may contain legally privileged, proprietary
and/or confidential information.  Any use, disclosure, dissemination,
distribution or copying of this e-mail and any attachments for any
purposes that have not been specifically authorized by the sender is
strictly prohibited.  If you are not the intended recipient, please
immediately notify the sender by reply e-mail and permanently delete all
copies and attachments.

The entire content of this e-mail is for "information purposes" only and
should not be relied upon by the recipient in any way unless otherwise
confirmed in writing by way of letter or facsimile.