There were two problems:
XmlBeans.typeForClass(javaType) creates a SchemaType with a QName of
null for Anonymous types. This is fine. However, the QName is required
to get the XmlObject. So I just parsed the anonymous type to get its
QName and that works fine.
Because the QName may be null one of the lines in getAllDependentTypes()
always failed in this case because it wasn't checking for null. Fixed.
I uploaded the new XmlBeanSerializer.java to the relevant JIRA location:
http://issues.apache.org/jira/browse/AXIS-1764
Note: I only handled one Anonymous type. The other types must also be
handled of the error 'Unhandled anonymous type' will be printed to stdout.
If I can work around the _major_ problem of having to manually specify
the XmlBeanSerializer per class I'll come back to fix the other
anonymous type handling.
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