0

我想使用 Spring 设置一个 web 服务端点SimpleJaxWsServiceExporter以便于使用,但我还需要使用 Jespa 的子类来保护 web 服务HttpSecurityFilter

我怀疑这不能开箱SimpleJaxWsServiceExporter即用,因为使用单独的 HTTP 服务器连接到包含过滤器的主机 webapp - 我应该如何完成这个?

我有一个用@WebService和在我的applicationContext.xml

<bean class="org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter"
        p:baseAddress="http://localhost:9581/"/>
4

1 回答 1

2

我发现了几种在同一 HTTP 服务器中托管端点的替代方法(在过滤器后面)

使用 JAX-WS WSSpringServlet并通过命名空间下的 xml 标记注册我的@WebServicebean ,或者我的首选选项,因为 JAX-WS Spring 集成使用CXF对 Spring 2 具有 Maven 依赖项。wss:bindinghttp://jax-ws.dev.java.net/spring/servlet

于 2012-07-19T07:01:42.837 回答