[ 
https://issues.apache.org/jira/browse/AXIS2-5958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16840412#comment-16840412
 ] 

robert lazarski commented on AXIS2-5958:
----------------------------------------

Hello, I believe you want the Axis2 C project Jira where [~bblough] may be able 
to help you:

https://issues.apache.org/jira/browse/AXIS2C 

I am marking this issue as invalid since I am not aware of a way to transfer 
the issue.

 

 

 

> Wrong C code generation for sequence types
> ------------------------------------------
>
>                 Key: AXIS2-5958
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5958
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.7.8
>         Environment: Fedora 20
>            Reporter: Rafael Barriuso
>            Priority: Major
>
> When generating the C code with
> {code:java}
> $AXIS2C_HOME/bin/tools/wsdl2c/WSDL2C.sh -uri $WSDL_PATH -ss -sd -d adb -u -o 
> $SKEL_OUT_PATH
> {code}
>  
> For an element like:
>  
> {code:java}
>     <xsd:complexType name="MyType">
>         <xsd:sequence>
>             <xsd:element name="MyName" type="MyElementType" minOccurs="0" 
> maxOccurs="unbounded"/>
>         </xsd:sequence>
>     </xsd:complexType>{code}
> (notice the `maxOccurs="unbounded"`)
>  
>  
> The type of "MyElementType" is incorrectly set to the parent "MyType" element 
> and hence the generated message is wrong.
>  
> To workaround the issue it's necessary to comment out the following line in 
> the generated type "adb_MyElementType.c", function  
> "adb_MyElementType_serialize_obj": 
> {code:java}
> axiom_element_add_attribute (parent_element, env, xsi_type_attri, 
> parent);{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to