web api和Web服务有什么区别? [英] What is the difference between web api and web service?

查看:338
本文介绍了web api和Web服务有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道web api和web api有什么区别



我尝试了什么:



i会知道web api和web api之间的区别

i would know what is the difference between web api and web api

What I have tried:

i would know what is the difference between web api and web api

推荐答案

Web服务通常基于SOAP,传统上使用XML ,并有一个WSDL(Web服务描述语言),您可以导航以了解端点以及输入/输出参数。 Web服务也是一个定义的标准。



Web API是使用REST的新构造,默认情况下通常使用JSON。他们通常不提供WSDL作为其使用指南。 Web API本身并不是标准;它只是使用HTTP协议与API通信。
Web Services typically are based on SOAP, traditionally using XML, and have a WSDL (Web Service Description Language) which you can navigate to learn about the endpoints along with the input/output parameters. Web Services are also a defined standard.

Web APIs are newer constructs using REST and generally use JSON by default. They typically do not offer a WSDL like guide to their usage. Web API is not a standard per se; it is simply communicating with an API using the HTTP protocol.


这篇关于web api和Web服务有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆