0

当我尝试将 Web 服务用作 CXF 代理客户端时,我收到 No such Operation 异常。我没有正确配置 CXF 代理客户端吗?我会很感激任何反馈。

下面提到了我的流程和异常详细信息。

<flow name="XML121Order">
    <jms:inbound-endpoint queue="mviq.121.order" />
    <outbound-endpoint address="https://www.example.com/appsacord/acordwebs.asmx" 
                       exchange-pattern="request-response" >
        <cxf:proxy-client operation="AppsAcord" 
                          payload="body" 
                          enableMuleSoapHeaders="false" />
    </outbound-endpoint>

    <xm:object-to-xml-transformer />

    <logger message="File payload is #[payload]" level="INFO" />

    <file:outbound-endpoint path="/eip/mvi/output" 
                            outputPattern="apps_xml121-[function:dateStamp]" />
</flow>

异常堆栈是:

  1. 没有这样的操作:AppsAcord (java.lang.Exception) org.mule.module.cxf.CxfOutboundMessageProcessor:279 (null)
  2. 没有这样的操作:AppsAcord (java.lang.Exception) (org.mule.api.DefaultMuleException) org.mule.module.cxf.CxfOutboundMessageProcessor:141 ( http://www.mulesoft.org/docs/site/current3/apidocs /org/mule/api/DefaultMuleException.html )

根异常堆栈跟踪:

java.lang.Exception: No such operation: AppsAcord
    at org.mule.module.cxf.CxfOutboundMessageProcessor.getOperation(CxfOutboundMessageProcessor.java:279)
    at org.mule.module.cxf.CxfOutboundMessageProcessor.getOperation(CxfOutboundMessageProcessor.java:360)
    at org.mule.module.cxf.CxfOutboundMessageProcessor.doSendWithClient(CxfOutboundMessageProcessor.java:200)
    at org.mule.module.cxf.CxfOutboundMessageProcessor.process(CxfOutboundMessageProcessor.java:127)
    at org.mule.endpoint.outbound.OutboundResponsePropertiesMessageProcessor.process(OutboundResponsePropertiesMessageProcessor.java:39)
    at org.mule.processor.TransactionalInterceptingMessageProcessor$1.doInTransaction(TransactionalInterceptingMessageProcessor.java:49)
    at org.mule.processor.TransactionalInterceptingMessageProcessor$1.doInTransaction(TransactionalInterceptingMessageProcessor.java:46)
    at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:116)
    at org.mule.processor.TransactionalInterceptingMessageProcessor.process(TransactionalInterceptingMessageProcessor.java:55)
    at org.mule.processor.AbstractFilteringMessageProcessor.process(AbstractFilteringMessageProcessor.java:41)
    at org.mule.endpoint.DefaultOutboundEndpoint.process(DefaultOutboundEndpoint.java:96)
    at org.mule.interceptor.AbstractEnvelopeInterceptor.process(AbstractEnvelopeInterceptor.java:55)
    at org.mule.processor.AsyncInterceptingMessageProcessor.processNextTimed(AsyncInterceptingMessageProcessor.java:118)
    at org.mule.processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker.doRun(AsyncInterceptingMessageProcessor.java:164)
    at org.mule.work.AbstractMuleEventWork.run(AbstractMuleEventWork.java:43)
    at org.mule.work.WorkerContext.run(WorkerContext.java:309)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
    at java.lang.Thread.run(Unknown Source)
4

0 回答 0