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 2007/07/12 12:41:05 UTC
[jira] Assigned: (AXIS2-2949) ADB: Wrong variable name in Factory
class generated from XSD file
[ https://issues.apache.org/jira/browse/AXIS2-2949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe reassigned AXIS2-2949:
----------------------------------------
Assignee: Amila Chinthaka Suriarachchi
> ADB: Wrong variable name in Factory class generated from XSD file
> -----------------------------------------------------------------
>
> Key: AXIS2-2949
> URL: https://issues.apache.org/jira/browse/AXIS2-2949
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.2
> Environment: Fedora, Eclipse 3.2, codegen as ant-task
> Reporter: Łukasz Zaręba
> Assignee: Amila Chinthaka Suriarachchi
> Attachments: OrderWlrServiceElement_type2.java
>
>
> The problem occurs when processing WSDL file which imports types from external schema file (XSD file looks like it was generated by .NET).
> When using ADB binding codegen generates variables with incorrect names. Variable names are linked to attribute names, and contain '-' characters. All errors occur in parse method of the Factory class. Example of generated code:
> // handle attribute "order-wlr-service-package_Id_0"
> java.lang.String tempAttriborder-wlr-service-package_Id_0 = reader.getAttributeValue("http://t.pl","order-wlr-service-package_Id_0");
> The corresponding XSD file fragment:
> <xs:attribute msprop:Generator_UserColumnName="order-wlr-service-package_Id_0" msprop:Generator_ColumnVarNameInTable="_columnorder_wlr_service_package_Id_0" msprop:Generator_ColumnPropNameInRow="_order_wlr_service_package_Id_0" msprop:Generator_ColumnPropNameInTable="_order_wlr_service_package_Id_0Column" name="order-wlr-service-package_Id_0" type="xs:int" use="prohibited" />
--
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