Announcement Announcement Module
No announcement yet.
a question about spring-ws and spring ws template Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • a question about spring-ws and spring ws template

    Hi I´ve a simple webservice like this:

    public class HelloImpl {
       * @param name
       * @return Say hello to the person.
       public String sayHello(String name) {
         return "Hello, " + name + "!";
    So I generated the client with wsimport so when I wrote the client using wstemplate I get that one of my classes generated with wsimport doesn´t have @XmlRootElement.

    So I was wondering, if I want to write my client with a webservice template, do I need to built my webservice with spring??

    Thanks in advance.

  • #2
    Try using xjc on the WSDL rather than wsimport. Spring doesn't care how you use to create your JAXB classes.