Topic: 调用WebService,遇到怪问题

  Print this page

1.调用WebService,遇到怪问题 Copy to clipboard
Posted by: nihongbin
Posted on: 2008-12-11 14:11

现在的一个项目,客户那里已经做好WebService,给了我们wsdl文件,我用eclipse下的插件解析了wsdl文件生成客户端,spring实例化之后在java中调用,其他方法都是好的,就遇到其中一个方法调用之后给我报错。

接口代码:

@WebMethod(operationName = "isTemporaryRecommendedUser", action = "")
@WebResult(name = "result", targetNamespace = "http://www.europages.com")
public boolean isTemporaryRecommendedUser(
@WebParam(name = "idUser", targetNamespace = "http://www.europages.com")
int idUser);


错误信息:
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Found element return but could not find matching RPC/Literal part
****************************************************

本人对WebService了解的非常粗浅, 哪位指教下啊


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2018 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号
客服电话 0592-8750026    客服信箱 714923@qq.com    客服QQ 714923