axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21981] - WSDL2Java fails to handle complexContent restrictions
Date Wed, 30 Jul 2003 12:14:28 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21981>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21981

WSDL2Java fails to handle complexContent restrictions





------- Additional Comments From Eric.D.Friedman@wellsfargo.com  2003-07-30 12:14 -------
I need to revise my position.  It looks like inheritance IS required to support derivation
by 
restriction.  The schema primer says this "In other words, an application prepared for the

values of the base type would not be surprised by the values of the restricted type. " (4.4).

So, it would have to be possible to use a WeightlessHermaphrodite wherever a 
MaleFemalePerson could be found.

I think that this means the subtype will need to inherit all of its parent type's behavior,
but 
the binding metadata for the subtype needs to be independent of the parent so that 
parent-only values will never be (un)marshalled.

I looked into what JAXB does in this case and confirmed that it works as described 
above.

Mime
View raw message