Wcf Vs Web Api

he following table describes the major features of each technology. WCF ASP.NET Web API Enables building services that support multiple transport protocols (HTTP, TCP, UDP, and custom transports) and allows switching between them. HTTP only. First-class programming model for HTTP. More suitable for access from various browsers, mobile devices etc enabling wide reach. Enables building services…

Read More

New Feature in wcf 4.5

Simplified Generated Configuration files, generated configuration file on client will only have non-default binding configuration. more… Validating WCF Configuration is now part of v4.5. While compiling if there are some validation errors with configuration file, it will be displayed as warnings in Visual Studio. more… WCF 4.5 support for Task-based Asynchronous programming model. Contract First…

Read More

Wcf calling by javascript and ajax

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <title>Complex Type AJAX Service Client Page</title> <script type=”text/javascript”> // <![CDATA[ // This function creates an asynchronous call to the service function makeCall(){ var n1 = document.getElementById(“num1”).value; var n2 = document.getElementById(“num2”).value; // If user filled out these fields, call the service if(n1 && n2){ //…

Read More