-
Jan 19th, 2011, 12:33 PM
#1
generating class from a wsdl.
Hi, I am a newbie to Spring and went through a few Spring WS tutorials where the XSD is involved. For my project, I only have an existing WSDL. i am using jaxb 1.0.6 , ant, and spring WS. The part I don't understand is how can i generate the java classes from the WSDL. Can someone shed some light?
thanks.
-
Jan 19th, 2011, 05:16 PM
#2
Use wsimport, which should be included in your jdk (bin directory).
Or download it separately:
http://download.oracle.com/javase/6/.../wsimport.html
-
Jan 19th, 2011, 05:38 PM
#3
You might also notice after generating the Java classes and using these classes in your Spring WS project, you might get the warning no @XmlRootElement annotation can be found.
This means you have to manually put an @XmlRootElement annotation at the topmost element of the class that needs to be marshalled.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules