Results 1 to 2 of 2

Thread: a question about spring-ws and spring ws template

  1. #1
    Join Date
    Dec 2008
    Posts
    20

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

    Default

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

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
  •