title: jax-ws service returns arraylist
body: <pre><code>@Entity
  public class School {
  
      @Id
      private int Id;
      private String schoolName;
  
      @OneToMany(cascade = CascadeType.ALL, mappedBy = "schoolId")  
      private List&lt;Student&gt; students;
  
      //....  get and set methods
  }
  
  
  @Entity
  public class Student {
  
      @Id
      private int Id;
      private String name;
      private String surname;
  
      @JoinColumn()
      @ManyToOne
      private School schoolId;
  
      //....  get and set methods
  }
  </code></pre>
  
  <p>I have this entities in my <strong>maven web project</strong>. I am using jpa framework. </p>
  
  <pre><code>@WebService
  public class MyService {
      @WebMethod
      public List&lt;School&gt; getSchoolInfo()
      {
          List&lt;School&gt; schools=getSchoolListFromDb();
          //schools liste has records, and each school has own student list
          return schools;
      }
  }
  </code></pre>
  
  <p>I wrote this getSchoolInfos method to share with a jax-ws service. I got the result when I use my return Type as School[]. But I want to use List&lt;> type. </p>
  
  <p>I wanted to use the axis service but I couldn't run axis in maven web project. </p>
  
  <p>What should I do? Which web service technology I should use?</p>