Spring Apache CXF处理程序问题
我面临CXF处理程序的问题(使用CXF 2.7.6版)。在我的xml文件中,定义了多个web服务客户端。我为服务1添加了一个简单的处理程序Spring Apache CXF处理程序问题,spring,soap,cxf,soap-client,cxf-client,Spring,Soap,Cxf,Soap Client,Cxf Client,我面临CXF处理程序的问题(使用CXF 2.7.6版)。在我的xml文件中,定义了多个web服务客户端。我为服务1添加了一个简单的处理程序 <jaxws:client id="service1" serviceClass="com.Service1" address="${E1}" username="${U1}" password="${P1}"> <jaxws:features> <beans:bean class="or
<jaxws:client id="service1"
serviceClass="com.Service1" address="${E1}"
username="${U1}" password="${P1}">
<jaxws:features>
<beans:bean class="org.apache.cxf.feature.LoggingFeature" />
</jaxws:features>
<jaxws:handlers>
<beans:bean class="com.SOAPMessageLoggingHandler" />
</jaxws:handlers>
</jaxws:client>
<jaxws:client id="service2"
serviceClass="com.Service2" address="${E2}"
username="${U2}" password="${P2}">
<jaxws:features>
<beans:bean class="org.apache.cxf.feature.LoggingFeature" />
</jaxws:features>
</jaxws:client>
现在,上述配置将导致
org.apache.cxf.interceptor.Fault:客户端已关闭
当使用第二个服务(服务2)且服务1工作正常时。但以下配置对于这两种服务都可以正常工作
<jaxws:client id="service2"
serviceClass="com.Service2" address="${E2}"
username="${U2}" password="${P2}">
<jaxws:features>
<beans:bean class="org.apache.cxf.feature.LoggingFeature" />
</jaxws:features>
</jaxws:client>
<jaxws:client id="service1"
serviceClass="com.Service1" address="${E1}"
username="${U1}" password="${P1}">
<jaxws:features>
<beans:bean class="org.apache.cxf.feature.LoggingFeature" />
</jaxws:features>
<jaxws:handlers>
<beans:bean class="com.SOAPMessageLoggingHandler" />
</jaxws:handlers>
</jaxws:client>
为什么订单会引起问题?添加到一个客户端的处理程序会影响另一个客户端吗