JAX WS webservice returning List

Hi

I want web service to return list,following is the code snippet i tried

@WebMethod()

public List<CustomerInfo> getAccountList()

{

Query query=em.createQuery("from CustomerInfo c");

List<CustomerInfo> info= query.getResultList();

return info;

}

i tested webservice using web service explorer provided by myeclipse IDE but it retuns null.

can anybody tell me where i went wrong?

thanks in advance...

[489 byte] By [patel123a] at [2007-11-27 9:31:32]
# 1
most likely your query returns null...
jwentinga at 2007-7-12 22:46:32 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

no .Its ejb component,i exposed it as webservice.

It was working fine before exposing it as webservice.

i have one more query,how to check which version of JAX WS my application server(jboss 4.0.5) is having?

i read one article there they have mentioned that JAX WS 1.2 supports array interface where as JAX WS 2.0 supports list interface.

patel123a at 2007-7-12 22:46:32 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...