Sorry for the delay Hung, I didn't get a chance to work on this until late Friday.
I put together a sample Web Service using the XmlBeanSerializers available from: http://superflaco.com/Beehive/xBeanSample.war
you should be able to just drop it into a servlet container and use the included build.xml to try out your own XBean services.
Hi Jonathan,
thanks a lot, this could be a lifesaver, as the deadline for the thesis is closing and I need to do exactly this.
Let me know if you have additional questions or if you run into problems.
I tried to build, but receive the following:
xbean:
[mkdir] Created dir: /var/lib/tomcat5/webapps/xBeanSample/WEB-INF/classes
[mkdir] Created dir: /var/lib/tomcat5/webapps/xBeanSample/WEB-INF/xbeangen
[xmlbeanbuild] Time to build schema type system: 3.004 seconds
[xmlbeanbuild] Time to generate code: 0.152 seconds
[xmlbeanbuild] Compiling 5 source files to /var/lib/tomcat5/webapps/xBeanSample/WEB-INF/classes
[xmlbeanbuild] Time to compile code: 3.216 seconds
build:
[javac] Compiling 2 source files to /var/lib/tomcat5/webapps/xBeanSample/WEB-INF/classes
[javac] /var/lib/tomcat5/webapps/xBeanSample/src/com/superflaco/axis/StarWarsBare.java:28: cannot access org.apache.beehive.wsm.axis.util.encoding.XmlBeanSerializerFactory
[javac] bad class file: /var/lib/tomcat5/webapps/xBeanSample/WEB-INF/lib/wsm-axis.jar(org/apache/beehive/wsm/axis/util/encoding/XmlBeanSerializerFactory.class)
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] import org.apache.beehive.wsm.axis.util.encoding.XmlBeanSerializerFactory;
[javac] ^
[javac] 1 error
BUILD FAILED
/var/lib/tomcat5/webapps/xBeanSample/build.xml:77: Compile failed; see the compiler error output for details.
Also tried to build in eclipse, compiles without problems, but refuses to run (exits with a java.lang.NoClassDefFoundError in StarWarsBare.tm.register ...)
Any hints appreciated. Is it working somewhere else (despite Jonathans machine)? How did you do it?
Thanx a lot
Jan