從Spring批處理應用程序調用spring-cxf-webservice時出現錯誤。僅在從batch調用時發生此錯誤。調用從正常的肥皂用戶界面其工作正常。一旦它從批處理調用一些記錄得到處理。錯誤正在發生的幾條記錄。檢查SOAP版本的批處理和Web服務及其相同。發送到SOAP 1.1唯一端點時,SOAP 1.2消息無效
org.apache.cxf.binding.soap.SoapFault: A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint.
at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:144)
at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:60)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:799)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1627)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1494)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1402)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:649)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:88)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
批量配置
<jaxws:client id="mainClient"
serviceClass="com.batch.service.MainSoap"
address="${url}" />
任何幫助或方法來確定根本原因,將不勝感激
您能分享您的配置的特定部分嗎? – 2013-03-18 08:57:40
@SerkanArıkuşu編輯與批處理配置的問題。 – Sajith 2013-03-18 09:34:22
您沒有向我們展示將您的mainClient Jax WS客戶端對象掛接到Spring Batch的配置/代碼。 – 2013-03-19 18:30:25