简体   繁体   中英

WCF Rest vs WebAPi

One of the difference which I read is "Unlike WCF Rest we can use full features of HTTP in Web API"

WebApi and wcf rest both uses Http only but I am not sure what do we mean by full features of Http here. What are the Http features which are available in webApi but not in wcf rest.

Could somebody explain please.

I think WebAPI is better than WCF because of some points of HTTP features:

  • Support many formats: JSON, XML, Text, binary, ...

  • Can customize Header and Body

  • Easy to custom URL

  • Simpler and faster (WCF is SOAP-based service)

  • Support many HTTP Status codes

  • Support multiple devices because the simple response and easy to customize for small devices like phone

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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