axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rémi Flament (JIRA) <>
Subject [jira] Created: (AXIS-2492) WSDL2Java generate incorrect code for Open Oasis UBL schemas
Date Tue, 06 Jun 2006 10:24:36 GMT
WSDL2Java generate incorrect code for Open Oasis UBL schemas

         Key: AXIS-2492
     Project: Apache Axis
        Type: Bug

  Components: WSDL processing  
    Versions: 1.4    
 Environment: Windows XP
    Reporter: Rémi Flament

WSDL2Java generate incorrect code with Open Oasis UBL Schema (

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, 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=""
	<xsd:simpleType name="MySimpleType">
		<restriction base="xsd:string" />

	<xsd:complexType name="MyComplexType">
			<xsd:extension base="tns:MySimpleType" />

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.


Rémi Flament.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message