[ http://issues.apache.org/jira/browse/AXIS-2492?page=all ]
Rémi Flament updated AXIS-2492:
-------------------------------
Attachment: Order.wsdl
> WSDL2Java generate incorrect code for Open Oasis UBL schemas
> ------------------------------------------------------------
>
> Key: AXIS-2492
> URL: http://issues.apache.org/jira/browse/AXIS-2492
> Project: Apache Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.4
> Environment: Windows XP
> Reporter: Rémi Flament
> Attachments: Order.wsdl
>
> WSDL2Java generate incorrect code with Open Oasis UBL Schema
> (http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=ubl).
> These schemas use a lot of restrictions on types. I was able to reproduce the
> bug with a simple xsd and a simple wsdl (attached).
> Here is the piece of code generated which is not good :
> //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> public class MyComplexType implements java.io.Serializable,
> org.apache.axis.encoding.SimpleType {
> public MyComplexType() {
> }
> // Simple Types must have a String constructor
> public MyComplexType(java.lang.String _value) {
> super(_value); // COMPILE ERROR
> }
> //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> Here is the schema :
> //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> <?xml version="1.0" encoding="UTF-8"?>
> <schema xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:tns="http://www.toto.com/simpletype"
> targetNamespace="http://www.toto.com/simpletype">
> <xsd:simpleType name="MySimpleType">
> <restriction base="xsd:string" />
> </xsd:simpleType>
> <xsd:complexType name="MyComplexType">
> <xsd:simpleContent>
> <xsd:extension base="tns:MySimpleType" />
> </xsd:simpleContent>
> </xsd:complexType>
> </schema>
> //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> As you can see the generated code tries to use the java.lang.Object
> constructor with a parameter, and this constructor doesn't exist.
> There is a lot of incorrect classes like this one when I use UBL.
> Regards,
> Rémi Flament.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]