WSDL2C bug with list of items - endless loop
--------------------------------------------
Key: AXIS2-3509
URL: https://issues.apache.org/jira/browse/AXIS2-3509
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: codegen
Affects Versions: nightly
Environment: Windows XP
Reporter: Dave Meier
Priority: Critical
I have the following in my wsdl:
<complexType name="ExtraValue">
<sequence>
<element name="valueType" type="xsd:string" minOccurs="0" maxOccurs="1"
nillable="true"/>
<element name="value" type="xsd:string" minOccurs="0" maxOccurs="1"
nillable="true"/>
</sequence>
</complexType>
<complexType name="Value">
<sequence>
<element name="displayValue" type="xsd:string" minOccurs="0" maxOccurs="1"
nillable="true"/>
<element name="internalValue" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true"/>
<element name="uuid" type="xsd:string" minOccurs="0" maxOccurs="1"
nillable="true"/>
<element name="extraValues" type="ae:ExtraValue" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>
When the code is generated using "org.apache.axis2.wsdl.WSDL2C -f -uri
aewebservicesaxis70.wsdl -o aewebservicesaxis70 -d adb -ss -sd" I get the
following for "extraValues" in the deserialize method. I had to add the
axiom_node_get_next_sibling call shown below to prevent an endless loop. I
encounter this when using a REST style call, where a text element is inserted
into the tree.
for (i = 0, sequence_broken = 0, current_node =
(is_early_node_valid?axiom_node_get_next_sibling(current_node,
env):current_node); !sequence_broken && current_node != NULL;)
{
if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
{
current_node = axiom_node_get_next_sibling(current_node, env); /* I had
to add this line to prevent an endless loop */
continue;
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]