title: JAX-WS returning a complex object?
body: <p>Im pretty new to Java Web Services, but I cant find a good explanation anywhere.</p>
  
  <p>I have 2 Java web projects within NetBeans.<br />
  One as a web service and one as a client for that web service.<br />
  I have also created my own class called "Person", which has what you'd expect: name, dob, etc.</p>
  
  <p>I would like to have a web service method called "ListPeople()" that would return an array of "Person" objects.</p>
  
  <p>Do I need to have that class in both projects?<br />
  Should I be serializing the object first?<br />
  Should I be using JAXB, if so, where do I start?<br /></p>
  
  <p>Sorry for the n00b questions, but im confused.<br />
  What is the normal way of accomplishing this?</p>
  
  <p>Thanks in advance</p>