Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
n/a
Description
When a WSDL contains a CompexType name and an element name that are the same, the generated code does not compile. For example, if a WSDL/XSD contains the following code...
<xsd:complexType name="aName">
<xsd:sequence>
<xsd:element name="aName" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
This gets turned into the following stub code...
class STORAGE_CLASS_INFO aName
{
public:
xsd__string aName;
And when this is compiled, the following error (and others) results:-
"type(s) preceeding 'aName' (constructor with return type, or illegal redefinition of current class name?)"