Results 1 to 3 of 3

Thread: generating class from a wsdl.

  1. #1
    Join Date
    Jan 2011
    Posts
    2

    Default 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.

  2. #2
    Join Date
    Dec 2010
    Posts
    14

    Default

    Use wsimport, which should be included in your jdk (bin directory).

    Or download it separately:
    http://download.oracle.com/javase/6/.../wsimport.html

  3. #3
    Join Date
    Dec 2010
    Posts
    315

    Default

    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
  •