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

  • a question about spring-ws and spring ws template

    Hi I´ve a simple webservice like this:

    Code:
    @WebService
    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.

    Comment

    Working...
    X