简体   繁体   English

如何通过查看项目来确定哪种类型的 Web 服务(soap 或 rest)

[英]How to determine which type of web service(soap or rest) by looking project

I am a newbie to Java and started learning webservices,my question is how one determines whether the project is written using soap or rest ??我是 Java 的新手并开始学习网络服务,我的问题是如何确定项目是使用soap 还是rest 编写的? Can we use spring framework to write webservices ??可以用spring框架写webservices吗?? Can anyone Provide online resources link for real world example of each (soap and rest) to improve my understanding of those each.任何人都可以为每个(肥皂和休息)的真实世界示例提供在线资源链接,以提高我对每个示例的理解。

You can identify by checking wsdl in the project if it has wsdl it means they are using SOAP based webservices.您可以通过检查项目中的 wsdl 来识别它是否有 wsdl,这意味着他们正在使用基于 SOAP 的 Web 服务。

Where as restful webservices is just a uri mapping in yaml files . RESTful webservices 只是 yaml 文件中的 uri 映射。

yes you can create a restful webservices using spring framework.是的,您可以使用 spring 框架创建一个宁静的网络服务。

Here you can find在这里你可以找到

https://spring.io/guides/tutorials/rest/ https://spring.io/guides/tutorials/rest/

https://dzone.com/articles/restful-web-service-1 https://dzone.com/articles/restful-web-service-1

Please check the above links请检查以上链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM