通过java类生成wsdl,返回值带list类型的有关问题

通过java类生成wsdl,返回值带list类型的问题

The service class "com.gdt.imp.UserMessageImp" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly.

答案:

0down voteaccepted

this could be because you are trying to pass a List as parameter and the JAX-RPC spec does not specify a clear mapping between the java.util.List object and XML.The good news is you have other options. For your example, you could declare the type of 'actors' in the parameter itself. For example, use a String[] or Actors[] (where Actors is a complex type).