2012-10-18 32 views
1

我正在使用CXF 2.7.0創建一個Java客戶機到使用SOAP的WCF Web服務。
我使用wsdl2java工具來生成與Web服務進行通信所需的類。用於WCF Soap的Apache CXF客戶機WS

我的問題是,在端點上綁定的ReliableSession Web服務已啓用,因爲這個時候我嘗試將消息發送到Web服務,CXF我得到

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?

+0

如果您得到的答案請發佈,因爲我面臨同樣的問題。 –

回答

1

嘗試使用cxf版本2.5.4而不是2.7.0。

+1

請你詳細解釋一下。它是一個版本問題? –