“Hello World” SOAP Web Service using Spring MVC [closed]

拟墨画扇 提交于 2019-12-23 16:25:23

问题


I want to write a hello world Spring MVC web service in Java. I'm really struggling to find a tutorial that goes to the basics to allow me to do this - ie. step by step for hello world.

Can anyone please help?


回答1:


Spring Web Services (Spring-WS) is a product of the Spring community focused on creating document-driven Web services. It aims to facilitate contract-first SOAP service development. Some of its key features are:

  • Powerful mappings The incoming XML requests can be distributed to any object, depending on message payload, SOAP Action header, or an XPath expression.
  • XML API support Incoming XML messages can be handled not only with standard JAXP APIs such as DOM, SAX, and StAX, but also JDOM, dom4j, XOM, or even marshalling technologies.
  • Flexible XML Marshalling Spring Web Services builds on the Object/XML Mapping module in the Spring Framework, which supports JAXB 1, JAXB 2, Castor, XMLBeans, JiBX, and XStream.
  • Reuses your Spring expertise Spring-WS uses Spring application contexts for all configuration, which should help Spring developers get up-to-speed nice and quickly. Also, the architecture of Spring-WS resembles that of Spring-MVC.
  • Supports WS-Security WS-Security allows you to sign SOAP messages, encrypt and decrypt them, or authenticate against them.
  • Integrates with Spring Security The WS-Security implementation of Spring Web Services provides integration with Spring Security.

Here are the List of tutorials and documentations to help to get started with Spring-ws:

  • Youtube - Spring-WS Tutorial
  • Spring Web Services Tutorial
  • Building a SOAP Webservices Proxy Module
  • Official - Spring Web Services Reference Documentation
  • Spring 4 + SOAP Web Service Producer and Consumer Example

SOAP is broad and complex topic, unlike REST API. You might want to get the concepts clear before starting with the implementation.



来源:https://stackoverflow.com/questions/33762027/hello-world-soap-web-service-using-spring-mvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!