axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Storer (JIRA)" <>
Subject [jira] Created: (AXIS-2559) Realtime generated WSDL is invalid when xsd simpleType extends another simpleType
Date Fri, 15 Sep 2006 12:42:22 GMT
Realtime generated WSDL is invalid when xsd simpleType extends another simpleType

                 Key: AXIS-2559
             Project: Apache Axis
          Issue Type: Bug
          Components: WSDL processing
    Affects Versions: 1.3, 1.4
         Environment: Windows XP JDK 1.4
            Reporter: Andrew Storer

This is similar to some other issues raised but not quite the same and I think a different
underlying cause.

The issue is that if I use the following in my WSDL
 <element name="nameOnCard" type="tns:NameType"/>
 <xs:simpleType name="NameType">
	<xs:restriction base="tns:StringMaxLength30Type"/>
<simpleType name="StringMaxLength30Type">
    <restriction base="string">
	<minLength value="1"/>
	<maxLength value="30"/>

I can generate my webservice OK.  However, when I try to retrieve the WSDL from Axis using

The WSDL I get is invalid containing a definition of NameType that looks like the following:

<complexType name="NameType">

There is an extension but it doesn't say what is extended.

The issue appears to be that SimpleSerializer calls org.apache.axis.description.TypeDesc.getTypeDescForClass()
to get a description of the class java.util.String to use in the <extension>.  But of
course, String does not have a method getTypeDesc and so null is returned.  This results in
an empty extension.

A full example wsdl is attached.

This may be related to 2308, 2226 and 1454.

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