If you are calling a web service with WSDL, JAXB is the best option. Take a look at wsimport and you'll be working in 10 minutes.
I don't think JAXB 2.0 will be possible on Java 1.4. You may need to use Axis:
java -cp axis-1.4.jar;commons-logging-1.1.jar;commons-discovery-0.2.jar;jaxrpc-1.1.jar;saaj-1.1.jar;wsdl4j-1.4.jar;activation-1.1.jar;mail-1.4.jar org.apache.axis.wsdl.WSDL2Java http:
This will lead to the creation of similar stubs for JAXB.
If you do not have WSDL or XSD, you can always generate one .
Chase seibert
source share