[
https://issues.apache.org/jira/browse/AXIS2C-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bill Blough updated AXIS2C-1575:
--------------------------------
Component/s: code generation
(was: wsdl2c tool)
> Generated code has undefined variables qname_uri and qname_prefix
> -----------------------------------------------------------------
>
> Key: AXIS2C-1575
> URL: https://issues.apache.org/jira/browse/AXIS2C-1575
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: 1.6.0
> Reporter: Hengli Wang
> Priority: Major
>
> In CADBBeanTemplateSource.xsl,the serialize_obj code defines qname_uri and
> qname_prefix only for non-simple types
> axiom_node_t* AXIS2_CALL
> <xsl:value-of select="$axis2_name"/>_serialize_obj(
> ...
> <!--now distinguise the properties specific to simple types -->
> <xsl:choose>
> <xsl:when test="@simple">
> ...
> </xsl:when>
> <!-- non simple types -->
> <xsl:otherwise>
> axiom_namespace_t *ns1 = NULL;
> axis2_char_t *qname_uri = NULL;
> axis2_char_t *qname_prefix = NULL;
> But later, they are used for simple types,
> <!-- here only simple type possible -->
> <!-- ADB_DEFAULT_DIGIT_LIMIT (64) bytes is used to the
> store the string representation of the number and the namespace prefix + ":"
> -->
> <xsl:choose>
> ...
> <!-- add axutil_qname_t s -->
> <xsl:when
> test="$nativePropertyType='axutil_qname_t*'">
> qname_uri = axutil_qname_get_uri(<xsl:value-of
> select="$propertyInstanceName"/>, env);
> And the generated code now has undefined qname_uri and qname_prefix.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]