WCF Web APIs on wcf.codeplex.com


Today we are announcing the first release of WCF Web APIs on wcf.codeplex.com, just in time for PDC 2010. There has already been some buzz about WCF investments in HTTP and Web technologies, and today is the day.

image

If you haven’t had a chance to watch Glenn Block’s talk at PDC 2010 that explains what we are doing and why, make sure to check it out. At the high level, these are the components available in our first Codeplex release (and there are more to come):

  • WCF Support for jQuery: components that facilitate creating WCF web services that are optimized for consumption from JavaScript clients running in a browser, in particular jQuery. This includes better support for the JSON format as well as application/x-www-form-urlencoded. Read more about this feature on my next blog post.
  • WCF HTTP: a brand new WCF HTTP processing stack that makes programming WCF web services easy with a set first class concepts and utilities targeting the HTTP protocol. Read more about this aspect at Glenn Block’s blog.

So go explore wcf.codeplex.com, download the binary release, read the documentation, download or browser the code, start a discussion, or otherwise let us know what you think!

Tomasz Janczuk
WCF Team


Comments (4)

  1. Marc Roussel says:

    I don't understand what implication this have with let say my current Silverlight 4 application ?

    geardoom3@live.com

  2. Kevin Pastorino says:

    Thanks you,

    I downloaded it, created a new WCFjQueryServiceApplication project, made no changes, pressed F5 to get the "server" going, downloaded jquery from http://jquery.com/, wrote the following html (stolen from here and there), set some brake points, ran the html and it all worked!

    <!DOCTYPE html>

    <html lang="en">

    <head>

      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

      <script src="jquery-1.4.3.js" type="text/javascript"></script>

      <script type="text/javascript">

          $(document).ready(function () {

              $("body").append("<br><ul id='People2'></ul>");

              var person = {

                  Name: "John Doe",

                  Age: 21,

                  Gender: "Male"

              };

              $.post("http://localhost:8326/Service/&quot;, person, function (result) {

                  $.ajax({

                      url: "http://localhost:8326/Service/&quot; + result.id,

                      data: { returnResult: true },

                      cache: false,

                      success: function (result) {

                          $("#People2").append("<li><b>Name:</b> " + result.Name + "</li>");

                          $("#People2").append("<li><b>Age:</b> " + result.Age + "</li>");

                          $("#People2").append("<li><b>Gender:</b> " + result.Gender + "</li>");

                      }

                  });

              });

          });

      </script>

    </head>

    <body>

      <a href="jquery.com/…/a>

    </body>

    </html>

  3. Kevin R. Pastorino says:

    Meant to say Thank you.  Not Thanks you.

    Thanks again.

  4. yavor says:

    @Marc Roussel – if you are a Silverlight developer, this doesn't necessrily affect you. WCF provides first-class support for Silverlight clients and you'll see more new features come up in the next version of Silverlight.

    By sharing this new work we emphasize WCF's commitment to the web in general. Once you learn how to use WCF for Silverlight applications, you can reuse those skills to address all other clients that speak HTTP. We are expanding what you can do with WCF, and Silverlight remains one of our first-class clients.

    Thanks,

    -Yavor Georgiev

    Program Manager, WCF