我正在使用具有以下属性的“ws:outbound-gateway”,
ignore-empty-responses="false" reply-channel="processReplyChannel"
我也尝试过
ignore-empty-responses="FALSE" reply-channel="processReplyChannel"
事实上,WS Reply 是空的,如下所示,
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body />
</soap:Envelope>
我的问题是该 channel 有一个 ServiceActivator,它将在出现非 SOAP 故障回复消息时执行某些操作。但似乎可能缺少一些东西,因为 ws 处理永远不会到达“processReplyChannel”,是否有人提示如何在没有响应正文的情况下处理成功的 WS 调用?
使用示例配置进行更新。
<int:chain input-channel="inputChainChannel" id="chainId">
<int:transformer id="firsttransformer"
ref="firsttransformer" ></int:transformer>
<int:transformer ref="beanTramsformer" method="someMethod"></int:transformer>
<int:transformer id="sencondMarshallingTransfomer" ref="sencondMarshallingTransfomer"></int:transformer>
<int:object-to-string-transformer></int:object-to-string-transformer>
<ws:header-enricher>
<ws:soap-action value="theSoapAction" />
</ws:header-enricher>
<ws:outbound-gateway
uri="${wsEndpoint}"
interceptor="anInterceptor" ignore-empty-responses="false" reply-channel="processReplyChannel">
<ws:request-handler-advice-chain>
<ref bean="retryAdvice" />
</ws:request-handler-advice-chain>
</ws:outbound-gateway>
</int:chain>
问候,
最佳答案
这看起来像是一个错误;我开了一个JIRA issue您可以观看。
关于java - 具有空响应的 Spring Integration WS Gateway,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33419393/