Davanum Srinivas wrote:
Mark,
I see that you need a way to do this *NOW* in production. Did you look
at the xmlbeans support in Axis 1.2?
(http://cvs.apache.org/viewcvs.cgi/ws-axis/java/src/org/apache/axis/encoding/ser/xbeans/)
Check the dev email archives for more info. There is sample code in
one of the JIRA issues.
SOLUTION: The sample doesn't compile if you have the old WebLogic
xmlbeans ant tasks in your ant/lib dir. Once I moved to a fresh
ant-1.6.5 install everything built and ran fine. Posting in the hopes it
helps someone else.
Cheers.
------
Just a FYI - the sample code doesn't work with XmlBeans 1.0.3 or
XmlBeans-2.0.
With XmlBeans 2.0 the error is:
(after fixing build.xml to use XMLBEANS_LIB instead of XMLBEANS_HOME)
/home/mswanson/downloads/java/xmlbeans/axis12XmlBeans/samples/build.xml:66:
Following error occured while executing this line
/home/mswanson/downloads/java/xmlbeans/axis12XmlBeans/samples/template/SampleTemplate/build.xml:82:
java.lang.NoSuchMethodError:
javax.xml.namespace.QName.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
With xmlBeans 1.0.3 the error is:
[xmlbean] schemas/hello.xsd:0: error: Document
/home/mswanson/downloads/java/xmlbeans/axis12XmlBeans/samples/template/SampleTemplate/schemas/hello.xsd
is not a schema file
[xmlbean] Time to build schema type system: 1.449 seconds
[xmlbean] BUILD FAILED
BUILD FAILED
/home/mswanson/downloads/java/xmlbeans/axis12XmlBeans/samples/template/SampleTemplate/build.xml:82:
null
It's strange, manually typing 'scomp
template/SampleTemplate/schemas/hello.xsd' creates the xmltypes.jar just
fine.
OK. I had the old WebLogic xmlbean ant tasks in my ant/lib dir and that
was the problem. Using a fresh ant-1.6.5 install solved the problem.
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