【发布时间】:2015-10-29 16:13:03
【问题描述】:
我正在使用具有以下属性的“ws:outbound-gateway”,
ignore-empty-responses="false" reply-channel="processReplyChannel"
我也试过了
ignore-empty-responses="FALSE" reply-channel="processReplyChannel"
其实WS回复如下是空的,
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body />
</soap:Envelope>
我的问题是频道有一个 ServiceActivator,它会在出现非肥皂故障回复消息的情况下执行某些操作。但似乎可能缺少某些东西,因为 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>
问候,
【问题讨论】:
-
这可能是由于其中一个底层库发生了变化;在调试器中,我看到为空主体返回 null 而不是空
String。正在调查...
标签: java spring web-services soap spring-integration