webservices 取值为null问题

今天做webservices 遇到 服务端一直取到的值为 null,返回给客户端的值也是null

首先检查:

       实现类上的@WebService()中有无加上:endpointInterface,这样CXF就会根据你的接口开生成WSDL,否则你在实现类里写的别的public方法也会发布成WebService。

再不行就加上

   

  1. @WebService(targetNamespace = "http://.......")  命名空间
  2. 检查客户端下的服务类bean下的 className 的命名是否不正确

猜你喜欢

转载自a-bin.iteye.com/blog/1175304