Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring Apache CXF处理程序问题_Spring_Soap_Cxf_Soap Client_Cxf Client - Fatal编程技术网

Spring Apache CXF处理程序问题

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

我面临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="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>

为什么订单会引起问题?添加到一个客户端的处理程序会影响另一个客户端吗