xfire客户端调用远程服务出现:org.codehaus.xfire.XFireRuntimeException: Could not find operation xxx方法

今天,编写bops后台,调用cms服务时错误:

org.codehaus.xfire.XFireRuntimeException: Could not find operation queryContentById in the service model.
 at org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.visit(WSDLServiceConfigurator.java:229)
 at org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.configure(WSDLServiceConfigurator.java:198)
 at org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:244)
 at org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:193)
 at com.bench.platform.base.xfire.remoting.XFireClientFactoryBean.makeClient(XFireClientFactoryBean.java:494)
 at com.bench.platform.base.xfire.remoting.XFireClientFactoryBean.createClient(XFireClientFactoryBean.java:419)
 at com.bench.platform.base.xfire.remoting.XFireClientFactoryBean.access$7(XFireClientFactoryBean.java:418)
 at com.bench.platform.base.xfire.remoting.XFireClientFactoryBean$ProxyInterceptor.getClient(XFireClientFactoryBean.java:672)
 at com.bench.platform.base.xfire.remoting.XFireClientFactoryBean$ProxyInterceptor.invoke(XFireClientFactoryBean.java:582)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
 at $Proxy80.queryByOwnerIdAndOwnerType(Unknown Source)
 at com.bench.app.bops.common.service.integration.cms.impl.LongTextQueryServiceClientImpl.queryByOwnerIdAndOwnerType(LongTextQueryServiceClientImpl.java:42)

 

 

 

 

 

搞了半天,原来是我客户端用的cms的ws的jar包不是最新的,也就是说我本地客户端调用服务时找不到xxx方法。把本地的cms的wsjar包干掉,再重新mvn一下,从mvn库中下一份新的jar包就好了


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值