cxf错误Message javax.xml.ws.soap.SOAPFaultException

1、如果是下述错误,原因是服务端接口与客户端接口路劲不一致

Exception inthread "main" javax.xml.ws.soap.SOAPFaultException: Message part{http://webservice.smart.com/}testHello1 was notrecognized.  (Does it exist in serviceWSDL?)
 atorg.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:155)
 at $Proxy24.testHello1(Unknown Source)
 atcom.smart.test.TestWebService.main(TestWebService.java:20)
Caused by: org.apache.cxf.binding.soap.SoapFault: Message part{http://webservice.smart.com/}testHello1 was notrecognized.  (Does it exist in serviceWSDL?)
 atorg.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)
 atorg.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)
 atorg.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
 atorg.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
 atorg.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:114)
 atorg.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
 atorg.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
 atorg.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
 atorg.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:800)
 atorg.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1590)
 atorg.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1488)
 atorg.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1307)
 atorg.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
 atorg.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:622)
 atorg.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
 atorg.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
 atorg.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
 atorg.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
 atorg.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
 atorg.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
 atorg.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
 atorg.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:133)
 ... 2 more


你可能感兴趣的:(webservice)