[prev in list] [next in list] [prev in thread] [next in thread]
List: axis-c-dev
Subject: [jira] [Updated] (AXIS2C-1699) Wrong C code generation for sequence types
From: "Bill Blough (JIRA)" <jira () apache ! org>
Date: 2019-05-15 14:24:00
Message-ID: JIRA.13233493.1557930047000.255725.1557930240407 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/AXIS2C-1699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Bill Blough updated AXIS2C-1699:
--------------------------------
Description:
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}
reported by [~rbarriuso]
Original submission: https://issues.apache.org/jira/browse/AXIS2-5958
was:
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}
reported by [~rbarriuso]
> Wrong C code generation for sequence types
> ------------------------------------------
>
> Key: AXIS2C-1699
> URL: https://issues.apache.org/jira/browse/AXIS2C-1699
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Environment: Fedora 20
> Reporter: Bill Blough
> 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}
> reported by [~rbarriuso]
> Original submission: https://issues.apache.org/jira/browse/AXIS2-5958
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic