You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Milinda Lakmal Pathirage (JIRA)" <ji...@apache.org> on 2007/01/05 10:29:27 UTC

[jira] Created: (AXIS2C-494) Generated code for complex types give compilation errors (WSDL2C Java Version)

Generated code for complex types give compilation errors (WSDL2C Java Version)
------------------------------------------------------------------------------

                 Key: AXIS2C-494
                 URL: https://issues.apache.org/jira/browse/AXIS2C-494
             Project: Axis2-C
          Issue Type: Bug
          Components: code generation
    Affects Versions: Current (Nightly)
            Reporter: Milinda Lakmal Pathirage


<xs:complexType name="ErrorParameterType">
		<xs:sequence>
			<xs:element name="Value" type="xs:string" minOccurs="0"/>
		</xs:sequence>
		<xs:attribute name="ParamID" type="xs:string"/>
</xs:complexType>

when there is complex type like above inside wsdl, generated .c file containing structure and function for manipulating it gave compilation errors.
This is caused by if statement in the CADBBeanTemplate Source doesn't correctly process the input xml generated for the complex type.

To correct the error we have to introduce a new attribute to the "property " element in the generated xml. And improve the following logic in template.

<xsl:if test="property and (not(property/@attribute) or property/@attribute='')"> to
<xsl:if test="property and (not(property/@attribute) or property/@attribute='' or property/@notattribute)"> 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-494) Generated code for complex types give compilation errors (WSDL2C Java Version)

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dinesh Premalal resolved AXIS2C-494.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.0

Thanks Milinda.

> Generated code for complex types give compilation errors (WSDL2C Java Version)
> ------------------------------------------------------------------------------
>
>                 Key: AXIS2C-494
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-494
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: Current (Nightly)
>            Reporter: Milinda Lakmal Pathirage
>         Assigned To: Dinesh Premalal
>             Fix For: 1.0.0
>
>         Attachments: codegen.patch
>
>
> <xs:complexType name="ErrorParameterType">
> 		<xs:sequence>
> 			<xs:element name="Value" type="xs:string" minOccurs="0"/>
> 		</xs:sequence>
> 		<xs:attribute name="ParamID" type="xs:string"/>
> </xs:complexType>
> when there is complex type like above inside wsdl, generated .c file containing structure and function for manipulating it gave compilation errors.
> This is caused by if statement in the CADBBeanTemplate Source doesn't correctly process the input xml generated for the complex type.
> To correct the error we have to introduce a new attribute to the "property " element in the generated xml. And improve the following logic in template.
> <xsl:if test="property and (not(property/@attribute) or property/@attribute='')"> to
> <xsl:if test="property and (not(property/@attribute) or property/@attribute='' or property/@notattribute)"> 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-494) Generated code for complex types give compilation errors (WSDL2C Java Version)

Posted by "Milinda Lakmal Pathirage (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milinda Lakmal Pathirage updated AXIS2C-494:
--------------------------------------------

    Attachment: codegen.patch

> Generated code for complex types give compilation errors (WSDL2C Java Version)
> ------------------------------------------------------------------------------
>
>                 Key: AXIS2C-494
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-494
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: Current (Nightly)
>            Reporter: Milinda Lakmal Pathirage
>         Attachments: codegen.patch
>
>
> <xs:complexType name="ErrorParameterType">
> 		<xs:sequence>
> 			<xs:element name="Value" type="xs:string" minOccurs="0"/>
> 		</xs:sequence>
> 		<xs:attribute name="ParamID" type="xs:string"/>
> </xs:complexType>
> when there is complex type like above inside wsdl, generated .c file containing structure and function for manipulating it gave compilation errors.
> This is caused by if statement in the CADBBeanTemplate Source doesn't correctly process the input xml generated for the complex type.
> To correct the error we have to introduce a new attribute to the "property " element in the generated xml. And improve the following logic in template.
> <xsl:if test="property and (not(property/@attribute) or property/@attribute='')"> to
> <xsl:if test="property and (not(property/@attribute) or property/@attribute='' or property/@notattribute)"> 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Assigned: (AXIS2C-494) Generated code for complex types give compilation errors (WSDL2C Java Version)

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dinesh Premalal reassigned AXIS2C-494:
--------------------------------------

    Assignee: Dinesh Premalal

> Generated code for complex types give compilation errors (WSDL2C Java Version)
> ------------------------------------------------------------------------------
>
>                 Key: AXIS2C-494
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-494
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: Current (Nightly)
>            Reporter: Milinda Lakmal Pathirage
>         Assigned To: Dinesh Premalal
>             Fix For: 1.0.0
>
>         Attachments: codegen.patch
>
>
> <xs:complexType name="ErrorParameterType">
> 		<xs:sequence>
> 			<xs:element name="Value" type="xs:string" minOccurs="0"/>
> 		</xs:sequence>
> 		<xs:attribute name="ParamID" type="xs:string"/>
> </xs:complexType>
> when there is complex type like above inside wsdl, generated .c file containing structure and function for manipulating it gave compilation errors.
> This is caused by if statement in the CADBBeanTemplate Source doesn't correctly process the input xml generated for the complex type.
> To correct the error we have to introduce a new attribute to the "property " element in the generated xml. And improve the following logic in template.
> <xsl:if test="property and (not(property/@attribute) or property/@attribute='')"> to
> <xsl:if test="property and (not(property/@attribute) or property/@attribute='' or property/@notattribute)"> 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-494) Generated code for complex types give compilation errors (WSDL2C Java Version)

Posted by "Milinda Lakmal Pathirage (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462445 ] 

Milinda Lakmal Pathirage commented on AXIS2C-494:
-------------------------------------------------

Applied patch fix the bug.

> Generated code for complex types give compilation errors (WSDL2C Java Version)
> ------------------------------------------------------------------------------
>
>                 Key: AXIS2C-494
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-494
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: Current (Nightly)
>            Reporter: Milinda Lakmal Pathirage
>         Attachments: codegen.patch
>
>
> <xs:complexType name="ErrorParameterType">
> 		<xs:sequence>
> 			<xs:element name="Value" type="xs:string" minOccurs="0"/>
> 		</xs:sequence>
> 		<xs:attribute name="ParamID" type="xs:string"/>
> </xs:complexType>
> when there is complex type like above inside wsdl, generated .c file containing structure and function for manipulating it gave compilation errors.
> This is caused by if statement in the CADBBeanTemplate Source doesn't correctly process the input xml generated for the complex type.
> To correct the error we have to introduce a new attribute to the "property " element in the generated xml. And improve the following logic in template.
> <xsl:if test="property and (not(property/@attribute) or property/@attribute='')"> to
> <xsl:if test="property and (not(property/@attribute) or property/@attribute='' or property/@notattribute)"> 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org