读书人

通过java类生成wsdl返回值带list类型

发布时间: 2012-09-06 10:37:01 作者: rapoo

通过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.

答案:

accepted

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).

读书人网 >编程

热点推荐