首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

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

2012-09-06 
通过java类生成wsdl,返回值带list类型的问题The service class com.gdt.imp.UserMessageImp does not co

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

热点排行