axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Storer (JIRA)" <axis-...@ws.apache.org>
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
                 URL: http://issues.apache.org/jira/browse/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"/>
</xs:simpleType>
            
<simpleType name="StringMaxLength30Type">
    <restriction base="string">
	<minLength value="1"/>
	<maxLength value="30"/>
    </restriction>
</simpleType>

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

    http://localhost:8080/axis/services/MyComplexPort?wsdl
The WSDL I get is invalid containing a definition of NameType that looks like the following:

<complexType name="NameType">
    <simpleContent>
        <extension/>
    </simpleContent>
</complexType>

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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
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