You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Wes Devauld <we...@devauld.ca> on 2003/06/04 23:17:29 UTC
Class Name Resolution in BeanSerializer
Hello,
I have an class, we'll call it path.to.Component, that is a bean. I
have another bean, let's say path.to.Wrapper, that contains a
path.to.Component[] . Now when I navigate to
http://localhost/axis/services/SOAPTEST?wsdl I get server side errors
that it is unable to serialize java.awt.Color and java.awt.Font (Even
though I make no references to java.awt.* anywhere in my code).
Furthermore when I examine the (partial) wsdl that is returned to me I
find that the schema definition for Component is:
<complexType name="Component">
<sequence>
<element name="background" nillable="true" type="xsd:anyType"/>
<element name="enabled" type="xsd:boolean"/>
<element name="focusable" type="xsd:boolean"/>
<element name="font" nillable="true" type="xsd:anyType"/>
<element name="foreground" nillable="true" type="tns2:Color"/>
<element name="name" nillable="true" type="xsd:string"/>
<element name="visible" type="xsd:boolean"/>
</sequence>
</complexType>
Which is very much not the bean that I created, but I believe is an
attempt at serializing the java.awt.Component.
Has anyone seen this problem before? Is this a legit bug? I've tried
taking out all the import path.to.*; and having the full class name in
every reference to the Component object, but to no avail. Anyone have a
work-around?
Thanks for your time,
-Wes