Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
<xs:complexType name="ErrorParameterType">
<xs:sequence>
<xs:element name="Value" type="xs:string" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="ParamID" type="xs:string"/>
</xs:complexType>
when there is complex type like above inside wsdl, generated .c file containing structure and function for manipulating it gave compilation errors.
This is caused by if statement in the CADBBeanTemplate Source doesn't correctly process the input xml generated for the complex type.
To correct the error we have to introduce a new attribute to the "property " element in the generated xml. And improve the following logic in template.
<xsl:if test="property and (not(property/@attribute) or property/@attribute='')"> to
<xsl:if test="property and (not(property/@attribute) or property/@attribute='' or property/@notattribute)">