Davanum Srinivas wrote:
get wsdltypes.jar from
http://superflaco.com/Beehive/java1dot4XBeanSample.war (mentioned in
the bug report http://issues.apache.org/jira/browse/AXIS-1764). It's
part of beehive wsm.
Thanks. That solved one issue. The last issue is in this code:
XmlObject[] kids = selectChildren
(tt, SchemaDocument.Schema.class);
SchemaDocument.Schema[] schemas =
new SchemaDocument.Schema[kids.length];
// NOTE [EMAIL PROTECTED] 2005-Jan-10 -- this is the
part that the
// fancy generics saves me from having to do after each
call to
// selectChildren(XmlObject, Class)
for (int j = 0; j < kids.length; j++) {
bug: ---> schemas[j] = (SchemaDocument.Schema) kids[j];
}
The bug is that you can't cast an XmlObject to a SchemaDocument.Schema:
/home/mswanson/downloads/java/axis-1_2_1/src/org/apache/axis/encoding/ser/xbeans/XmlBeanSerializer.java:142:
types org.apache.xmlbeans.XmlObject and
org.w3.x2001.xmlSchema.SchemaDocument.Schema are incompatible; both
define copy(), but with different return type
[javac] schemas[j] = (SchemaDocument.Schema)
kids[j];
[javac] ^
Instead of casting I tried to use an XmlObject method to accomplish the
same thing in a safer manner. I patched the above code to look like this:
for (int j = 0; j < kids.length; j++) {^M
schemas[j] = kids[j].schemaType();^M
//schemas[j] = (SchemaDocument.Schema) kids[j];^M
}^M
Though, I haven't tested it. It does compile and it seems like I
followed the intent but the underlying details are new to me so...
Is there anyone on this mailing list that would know the answer to this?
I've cc'd the author of the code fragment. Perhaps he could help.
If we can get through this I'll post a nice summary for future reference.
Cheers.
--
Free replacement for Exchange and Outlook (Contacts and Calendar)
http://www.ScheduleWorld.com/
WAP: http://www.ScheduleWorld.com/sw/WAPToday?id=4000&tz=EST
WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics
VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb