KEMBAR78
Web api vs asp.net
WCFASP.NET WEB API vs
WebAPI is used for developing
HTTP Services.Supports only
HTTP protocol
Supports only HTTP Supports different Protocols
WCF is used for developing
services which supports different
protocols such as HTTP, TCP,
Named Pipes, MSMQ
Requires more configuration to
consume.Not suitable for
devices such as mobiles.
Lightweight and can support
different devices with limited
bandwidth such as
mobiles,tablets.
Uses the different HTTP features
such as the HTTP verbs for
building REST services
Lightweight,do not require much
configuration
Requires more configuration
Used for building RESTful applications Used for Building SOAP based Services
Though WCF can be used for
building REST services.It is
suitable for building SOAP based
services.
Support for Higher level protocols
Support Different Message
Exchange Patterns such as
Request/Response One
Way,Duplex
Supports only Request/Response
Use
Accessibility
Supported Protocols
Message Exchange Pattern
Supports WS-* standards such as
Reliable Messaging, Transactions,
Message Security.
Protocols such as Messaging,
Transactions are not supported.
@codecompiled.com

Web api vs asp.net

  • 1.
    WCFASP.NET WEB APIvs WebAPI is used for developing HTTP Services.Supports only HTTP protocol Supports only HTTP Supports different Protocols WCF is used for developing services which supports different protocols such as HTTP, TCP, Named Pipes, MSMQ Requires more configuration to consume.Not suitable for devices such as mobiles. Lightweight and can support different devices with limited bandwidth such as mobiles,tablets. Uses the different HTTP features such as the HTTP verbs for building REST services Lightweight,do not require much configuration Requires more configuration Used for building RESTful applications Used for Building SOAP based Services Though WCF can be used for building REST services.It is suitable for building SOAP based services. Support for Higher level protocols Support Different Message Exchange Patterns such as Request/Response One Way,Duplex Supports only Request/Response Use Accessibility Supported Protocols Message Exchange Pattern Supports WS-* standards such as Reliable Messaging, Transactions, Message Security. Protocols such as Messaging, Transactions are not supported. @codecompiled.com