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 "Łukasz Zaręba (JIRA)" <ji...@apache.org> on 2007/07/12 00:46:04 UTC
[jira] Created: (AXIS2-2949) ADB: Wrong variable name in Factory
class generated from XSD file
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
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
[jira] Assigned: (AXIS2-2949) ADB: Wrong variable name in Factory
class generated from XSD file
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ 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
[jira] Resolved: (AXIS2-2949) ADB: Wrong variable name in Factory
class generated from XSD file
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi resolved AXIS2-2949.
-------------------------------------------------
Resolution: Fixed
this is already fixed. if you see any problems still please reopen the wsdl file
> 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
[jira] Updated: (AXIS2-2949) ADB: Wrong variable name in Factory
class generated from XSD file
Posted by "Łukasz Zaręba (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Łukasz Zaręba updated AXIS2-2949:
---------------------------------
Attachment: OrderWlrServiceElement_type2.java
File generated by codegen.
> 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
> 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
[jira] Commented: (AXIS2-2949) ADB: Wrong variable name in Factory
class generated from XSD file
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512144 ]
Amila Chinthaka Suriarachchi commented on AXIS2-2949:
-----------------------------------------------------
can you please test this with the RC1 or an with a nighly build?
> 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