<分区>
我想用 Java 编写一个 hello world Spring MVC web 服务。我真的很难找到一个基础教程来让我做到这一点 - 即。一步一步为 Hello World 。
有人可以帮忙吗?
标签 java spring spring-mvc soap
<分区>
我想用 Java 编写一个 hello world Spring MVC web 服务。我真的很难找到一个基础教程来让我做到这一点 - 即。一步一步为 Hello World 。
有人可以帮忙吗?
最佳答案
Spring Web Services (Spring-WS
) 是 Spring 社区专注于创建文档驱动
Web 服务的产品。它旨在促进契约优先的 SOAP 服务开发。它的一些主要特点是:
对象
,具体取决于消息有效负载
、SOAP 操作 header 或 XPath 表达式. JAXP
API 处理,例如 DOM
、SAX
和 StAX,还有 JDOM、dom4j、XOM,甚至 marshalling
技术。JAXB 1
、JAXB 2
、Castor
、XMLBeans
、JiBX
和 XStream
.Spring application contexts
进行所有配置,这应该有助于 Spring 开发人员快速上手。此外,Spring-WS
的架构类似于 Spring-MVC
。签署
SOAP 消息,
对它们进行加密和解密,或者对它们进行身份验证
。Spring Security
的集成。Here are the List of tutorials and documentations to help to get started with
Spring-ws
:
SOAP is broad and complex topic, unlike REST API. You might want to get the concepts clear before starting with the implementation.
关于java - "Hello World"使用 Spring MVC 的 SOAP Web 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33762027/
相关文章:
java - SPEL 表达式不适用于@Query 中的#{#entityName}
java - 使用 Android NDK 将 C++ 对象传递给 Java 的最有效方法是什么
java - 使用JDBC和MySQL解决“通信链接失败”问题
java - org.hibernate.service.UnknownServiceException : Unknown service requested
java - 一个奇怪的 org.hibernate.DuplicateMappingException 只有当我的网络应用程序部署到 CentOS 上的 tomcat 时才会发生