用于WCF Soap WS的Apache CXF客户端
我正在使用CXF2.7.0创建一个java客户机,以使用SOAP的WCF web服务。用于WCF Soap WS的Apache CXF客户端,wcf,web-services,cxf,webservice-client,Wcf,Web Services,Cxf,Webservice Client,我正在使用CXF2.7.0创建一个java客户机,以使用SOAP的WCF web服务。 我已经使用wsdl2java工具生成了与web服务通信所需的类 我的问题是,在端点绑定上的web服务中,reliableSession被启用,因此,当我尝试使用cxf向web服务发送消息时,我得到了 Oct 19, 2012 1:11:59 AM org.apache.cxf.ws.rm.Proxy invoke INFO: Sending out-of-band RM protocol message {h
我已经使用wsdl2java工具生成了与web服务通信所需的类 我的问题是,在端点绑定上的web服务中,reliableSession被启用,因此,当我尝试使用cxf向web服务发送消息时,我得到了
Oct 19, 2012 1:11:59 AM org.apache.cxf.ws.rm.Proxy invoke
INFO: Sending out-of-band RM protocol message {http://schemas.xmlsoap.org/ws/2005/02/rm}CreateSequence.
Oct 19, 2012 1:11:59 AM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
WARNING: Interceptor for {http://schemas.xmlsoap.org/ws/2005/02/rm}SequenceAbstractService#{http://schemas.xmlsoap.org/ws/2005/02/rm}CreateSequence has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:531)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:376)
at org.apache.cxf.ws.rm.Proxy.invoke(Proxy.java:287)
at org.apache.cxf.ws.rm.Proxy.createSequence(Proxy.java:183)
at org.apache.cxf.ws.rm.RMManager.getSequence(RMManager.java:448)
at org.apache.cxf.ws.rm.RMOutInterceptor.handle(RMOutInterceptor.java:152)
at org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:83)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:531)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
at .........
有人知道如何在CXF中启用reliableSession吗 尝试cxf版本2.5.4而不是2.7.0。尝试cxf版本2.5.4而不是2.7.0。如果你得到答案,请发布它,因为我面临相同的问题。如果你得到答案,请发布它,因为我面临相同的问题。请详细解释。是版本问题吗?请您详细解释一下。是版本问题吗??