什么是Web API和服务 [英] What is web API and services

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

问题描述

Hi Good day to all developer here.
I'am in new in web developing our company need to upgrade in web. I choose to use the ASP.net MVC. I'am just asking is what is Web Service and Web API?
How the 2 are wroking in WEB? and When and Where to use the 2? 
All reply and exmaple are really much appreciated. thank you in advance





我的尝试:



我读了一些书,但它不会满足我想知道的,



What I have tried:

I read some books, but it will not satify what i want to know,

推荐答案

谷歌搜索每个术语应该会给你带来大量的结果。取自发布 [ ^ ],Web服务通常提供WSDL,您可以从中自动创建客户端存根。 Web服务基于SOAP协议。 Web API是一个较新的Microsoft框架,可帮助您构建基于REST的界面。响应可以是JSON或XML,但无法自动生成客户端,因为Web Api不提供Web服务中的WSDL等服务描述。
Googling each term should give you tons of results in the web. Taken from this post[^], A web service typically offers a WSDL from which you can create client stubs automatically. Web Services are based on the SOAP protocol. Web API is a newer Microsoft framework which helps you to build REST based interfaces. The response can be either JSON or XML, but there is no way to generate clients automatically because Web Api does not offer a service description like the WSDL from Web Services.


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

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