今天,编写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包就好了