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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to