使用 java、xml 和 spring 学习/实现 Web 服务的最佳书籍/教程

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/827071/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 19:56:50  来源:igfitidea点击:

Best book/ tutorial to learn/implement web services using java, xml and spring

javaxmlspring

提问by Ankush

I am a newbie to web-services. What is a good way to learn web-services implementation using java, xml and spring? Are there any good books which cover this topic in good width? Or, are there any online resources, tutorials, etc.?

我是网络服务的新手。使用 java、xml 和 spring 学习 Web 服务实现的好方法是什么?有没有什么好书可以很好地涵盖这个主题?或者,是否有任何在线资源、教程等?

Also, what would be good projects to understand this hands-on?

此外,了解这种动手操作的好项目是什么?

Any recommendations>?

有什么建议>?

采纳答案by Eugene Yokota

I originally learned Web Services concepts without books, so my opinions may be biased, but I don't think books would help much in the beginning. Once you get to some intermediate state where you need to study security, SOA, etc, maybe books would help.

我最初是在没有书籍的情况下学习 Web 服务概念的,所以我的观点可能有偏见,但我认为书籍在一开始不会有太大帮助。一旦您进入需要学习安全性、SOA 等的中间状态,也许书籍会有所帮助。

I needed to get an intern up to speed on Web Services, so I made him implement a two-player game of Reversiusing Web Services as the business logic layer with SQL Server underneath it. The UI layer was a desktop executable hitting the service.

我需要让一名实习生快速了解 Web 服务,因此我让他使用 Web 服务作为业务逻辑层并在其下使用 SQL Server 来实现一个两人玩的黑白棋游戏。UI 层是访问服务的桌面可执行文件。

You can do something like that using Axis2 and Swing. Once you've built the first UI, you can then try to consume the same service using .NET/Ruby/jQuery or something too to demonstrate the interoperability.

您可以使用 Axis2 和 Swing 执行类似操作。一旦您构建了第一个 UI,您就可以尝试使用 .NET/Ruby/jQuery 或其他东西来使用相同的服务来演示互操作性。

回答by Eugene Yokota

I own this book but haven't read it: SOA Using Java Web Services

我拥有这本书,但还没有读过:SOA Using Java Web Services

alt text

替代文字

回答by Fortyrunner

The Java SOA Cookbook is very good - but it does not really cover Spring.

Java SOA Cookbook 非常好 - 但它并没有真正涵盖 Spring。

The Spring Recipes book is pretty good at explaining How-To do things in Spring.

Spring Recipes 这本书非常擅长解释如何在 Spring 中做事。

回答by edwardsmatt

Spring in Action Second Edition Cover

Spring in Action 第二版封面

Spring in Action Second Editionhas a fair bit of information about using Spring and web services with examples. It worked for me anyway.

Spring in Action Second Edition提供了大量有关使用 Spring 和 Web 服务以及示例的信息。无论如何它对我有用。

回答by JavaRocky

I found books okay, but in the end I used spring web services and it was such a breeze. Highly recommend the reference manual. It has a great introduction on the approach spring web services has taken with the contract first approach and why it is recommended.

我发现书籍还可以,但最终我使用了 spring 网络服务,这真是轻而易举。强烈推荐参考手册。它很好地介绍了 Spring Web 服务采用契约优先方法的方法以及为什么推荐它。

http://static.springframework.org/spring-ws/sites/1.5/reference/html/index.html

http://static.springframework.org/spring-ws/sites/1.5/reference/html/index.html

Cheers.

干杯。

回答by JavaRocky

Some IDEs have web service wizards and projects that take you through setting up a service. They might not be a great way to learn about web services by themselves, but you'll be exposed to some key terms and ideas that can help you build a vocabulary and starting point.

某些 IDE 具有 Web 服务向导和项目,可引导您设置服务。它们本身可能不是学习 Web 服务的好方法,但您将接触到一些可以帮助您建立词汇表和起点的关键术语和想法。

回答by time4tea

You don't need spring or XML to do web services. Just a simple jetty and stringtemplate will allow you concentrate on the java and web service stuff, and allow you to refactor your code easily in the ide.

您不需要 spring 或 XML 来执行 Web 服务。只需一个简单的 jetty 和 stringtemplate 就可以让您专注于 Java 和 Web 服务的东西,并允许您在 ide 中轻松重构代码。

I expect to be down voted by the spring fanatics, but honestly, it's whet you want to be doing!

我希望被春季狂热分子投票否决,但老实说,这是你想要做的!