title: The service class does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly
body: <p>I am new to Java Webservices, currently I am trying to create a simple SOAP based web-services but getting issue in creating it.</p>
  
  <p>Here is my webservice class:</p>
  
  <pre><code>@WebService
  public class Teams {
      private TeamsUtility utils;
  
      public Teams() { 
         utils = new TeamsUtility(); 
         utils.make_test_teams();
      }
  
      @WebMethod
      public Team getTeam(String name) { return utils.getTeam(name); }
  
      @WebMethod
      public List&lt;Team&gt; getTeams() { return utils.getTeams(); }
  
      @WebMethod
      public String getDummyTeams() { return "Hi"; }
  }
  </code></pre>
  
  <p>As you can see I have 3 methods here. Now if I just keep <code>getDummyTeams</code> and ask eclipse to create a WebService, then I have no issues. But when I tried to add remaining 2 methods <code>public Team getTeam(String name)</code> &amp; <code>public List&lt;Team&gt; getTeams()</code> then while creating webservice I am getting error as :</p>
  
  <blockquote>
    <p>The service class "helloservice.endpoint.Teams" does not comply to one
    or more requirements of the JAX-RPC 1.1 specification, and may not
    deploy or function correctly.   The field or property "players" on the
    value type "helloservice.endpoint.Team" used via the service class
    "helloservice.endpoint.Teams" has a data type, "java.util.List", that
    is not supported by the JAX-RPC 1.1 specification. Instances of the
    type may not serialize or deserialize correctly. Loss of data or
    complete failure of the Web service may result.</p>
  </blockquote>
  
  <p>Here is my <code>Team</code> class:</p>
  
  <pre><code>@XmlRootElement
  public class Team implements Serializable{
      private List&lt;Player&gt; players;
      private String name;
  
      public Team() {
      }
  
      public Team(String name, List&lt;Player&gt; players) {
          setName(name);
          setPlayers(players);
      }
  // Setter &amp; Getter methods
  }
  </code></pre>
  
  <p>Can you please help me how do I fix this issue? I want to use <code>java.util.List</code>. Is there any settings I have to change in eclipse to use collections while creating SOAP based web-services?</p>