0
<flow name="webserviceFlow1">
    <http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:7079/service">
    <cxf:jaxws-service doc:name="SOAP" enableMuleSoapHeaders="false" serviceClass="MyService"/>
    </http:inbound-endpoint>
    <component class="MyServiceImpl" />        
</flow>

<flow name="webserviceFlow1">
    <http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:7079/service"/>
    <cxf:jaxws-service doc:name="SOAP" enableMuleSoapHeaders="false" serviceClass="MyService"/>
    <component class="MyServiceImpl" />        
</flow>
4

1 回答 1

3

如果流程在您的问题中保持不变,则它们在功能上是等效的。

如果您希望直接请求也可以访问此流程,例如通过 VM 传输,通过使用 a <composite-source>,那么您需要将 限制cxf:jaxws-service为 ,http:inbound-endpoint这样 CXF 逻辑就不会启动,如下所示:

<flow name="webserviceFlow1">
    <composite-source>
        <vm:inbound-endpoint path="directAccess" />
        <http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:7079/service">
            <cxf:jaxws-service doc:name="SOAP" enableMuleSoapHeaders="false" serviceClass="MyService"/>
        </http:inbound-endpoint>
    </composite-source>
    <component class="MyServiceImpl" />        
</flow>
于 2013-03-13T15:50:37.410 回答