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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2008/02/14 12:31:09 UTC

[jira] Assigned: (AXIS2-3509) WSDL2C bug with list of items - endless loop

     [ https://issues.apache.org/jira/browse/AXIS2-3509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-3509:
----------------------------------------

    Assignee: Samisa Abeysinghe

I think this is something to do with Axis2 C
so Smaisa who is the right person to assign this issue

Thanks
Deepal 

> 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
>            Assignee: Samisa Abeysinghe
>            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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org