unadequate type mapping
-----------------------
Key: AXIS-2577
URL: http://issues.apache.org/jira/browse/AXIS-2577
Project: Apache Axis
Issue Type: Bug
Environment: Axis - TomCat - Windows XP - Java 1.5
Reporter: Isidro Lopes
When you have a valid schema like this:
-------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/"
xmlns:tns="http://www.example.org/">
<simpleType name="DoubleList">
<annotation>
<documentation>
XML List based on XML Schema double
type. An element of
this type contains a space-separated
list of double
values
</documentation>
</annotation>
<list itemType="double" />
</simpleType>
<complexType name="ComplexDoubleList">
<simpleContent>
<extension base="tns:DoubleList">
<attribute name="findAt" type="anyURI"
use="optional"/>
<attribute name="dimension"
type="positiveInteger" use="optional"/>
</extension>
</simpleContent>
</complexType>
<element name="complexDoubleList"
type="tns:DoubleList"></element>
<complexType name="ListFilter">
<sequence>
<element name="from" type="long"></element>
<element name="to" type="long"></element>
</sequence>
</complexType>
<element name="listFilter" type="tns:ListFilter"></element>
</schema>
--------------------------------------------
And try to use complexDoubleList as a Message's part, WSDL2Java
generates a ComplexDoubleList.java like this:
---------------------------------------------
* ComplexDoubleList.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java
emitter.
*/
package org.example.www;
public class ComplexDoubleList extends double[] implements
java.io.Serializable {....
Observe that it tries to simplify the transformation mapping the
DoubleList into a Double[]. This doesn't seem to be OK, since
DoubleList should be extended into a ComplexDoubleList type, for
instance. Then the ComplexDoubleList.java is born as a class that
extends Double[]!!!
I have simplified Open GIS schema I'm using in order to make it easier to
understand, but if you want to jump into GIS, you may download
schemas from http://www.opengeospatial.org/standards/olscore
I would appreciate suggestions to overcome this issue.
Best regards,
Isidro.
--
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]