【发布时间】:2016-02-14 21:12:25
【问题描述】:
我的目标是调用需要身份验证的网络服务(当我在浏览器中打开它的 wsdl 时,浏览器会询问我登录名+密码)。
作为基础,我使用来自this 教程的示例。
现在我必须添加身份验证配置。
根据documentation 类似配置 WebServiceTemplate bean 可能会有所帮助。
但是对于 Spring Boot,项目中没有 applicationContext.xml 或任何其他配置 xml。
那么,如何使用 Spring Boot 配置 WebServiceTemplate,或者还有什么可以解决这样的任务?
【问题讨论】:
-
你可以随时使用
@ImportResource("applicationContext.xml")导入xml
标签: spring web-services spring-boot spring-ws