使用 spring 实现 Web 服务而不使用 spring-remoting-2.0.8.jar 因为这个 jar 不是由 spring 社区发布的

Implementing Web Services with spring without using spring-remoting-2.0.8.jar as this jar is not released by spring community

我们正在尝试使用 spring 和轴来实现 Web 服务。 作为参考,我们使用 THIS SITE。这里他们建议通过扩展 ServletEndpointSupport 来实现端点,如下所示

import org.springframework.remoting.jaxrpc.ServletEndpointSupport;

public class SpringWSEndPoint extends ServletEndpointSupport
{
}

但是 class org.springframework.remoting.jaxrpc.ServletEndpointSupport 来自 JAR spring-remoting-2.0.8.jar 未由 spring 框架在最新版本中发布。 我们知道 spring-remoting 成为了 spring-context 的一部分,所以新版本发布时带有 spring-上下文。

我的问题是 我们如何使用 Spring-context jar 实现相同的功能? Spring-context jar 中 ServletEndpointSupport 的 class 等效于什么?

我们将不胜感激。

提前致谢!

我建议使用 Spring-WS - 特别是因为 ServletEndpointSupport 已被弃用 - http://forum.spring.io/forum/other-spring-related/remoting/78249-deprecation-of-servletendpointsupport

您可以探索 spring-ws:http://projects.spring.io/spring-ws/

将这些转换为 RESTful 服务也不是太复杂。