在Spring WS中捕获EndpointNotFound

时间:2017-02-13 11:34:57

标签: java spring soap spring-ws

如何在Spring WS中捕获NoEndpointFoundException

默认MessageDispatcher.dispath()如果缺少适当的端点,则会抛出NoEndpointFoundException但是WebServiceMessageReceiverObjectSupport.handleConnection()只会隐藏异常。在我看来,我应该自己抓住它。

通过MessageDispatcher.getEndpointMappings().add()添加自定义EndpointMapping并在其中抛出异常是否是个好主意?

1 个答案:

答案 0 :(得分:1)

我找到了以下解决方案:

ProjectRef(uri("https://github.com/rickynils/scalacheck.git#1.13.4"),"jvm")