axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Zaręba (JIRA) <j...@apache.org>
Subject [jira] Updated: (AXIS2-2949) ADB: Wrong variable name in Factory class generated from XSD file
Date Wed, 11 Jul 2007 22:48:04 GMT

     [ 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


Mime
View raw message