Spring-WS提供以下支持作为其模板的一部分。Spring集成支持不合格服务
试图确定是否Spring Integration的暴露这一点。从2012年发现以下内容,但我希望这将成为框架的一部分。
http://forum.spring.io/forum/spring-projects/integration/119981-ws-outbound-gateway-and-soap-fault
Spring-WS提供以下支持作为其模板的一部分。Spring集成支持不合格服务
试图确定是否Spring Integration的暴露这一点。从2012年发现以下内容,但我希望这将成为框架的一部分。
http://forum.spring.io/forum/spring-projects/integration/119981-ws-outbound-gateway-and-soap-fault
不,我们还不支持。
正如我在那里说的:随时提出一个JIRA问题! :-)
示例配置基础上从2012年的链接解释...
@Bean
@Description("Workaround for non conforming services")
AbstractWebServiceOutboundGateway initializeWebserviceGateway(
@Qualifier("wsOutboundGateway.handler") Object bean) {
Advised advised = (Advised) bean;
AbstractWebServiceOutboundGateway gateway = null;
try {
gateway = (AbstractWebServiceOutboundGateway) advised
.getTargetSource().getTarget();
} catch (Exception e) {
throw new IllegalStateException("Unable to configure webServiceTemplate for non conforming services");
}
DirectFieldAccessor dfa = new DirectFieldAccessor(gateway);
WebServiceTemplate wst = (WebServiceTemplate) dfa
.getPropertyValue("webServiceTemplate");
wst.setCheckConnectionForError(false);
wst.setCheckConnectionForFault(false);
return gateway;
}
创建https://jira.spring.io/browse/INT-3561 –
感谢您的快速反应:) –