Home > Microsoft .Net Development News > .NET Framework 3.5: Communication, database improvements abound
Microsoft .Net Development News:
EMAIL THIS

.NET Framework 3.5: Communication, database improvements abound

By George Lawton, Contributor
23 Nov 2007 | SearchWinDevelopment.com

.NET News Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google

For Microsoft, the .NET Framework 3.5 and Visual Studio 2008 are the latest updates to platforms that have been evolving for the last five years. Dino Chiesa, the director of the .NET Platform in the Connected Systems Division at Microsoft Corp. recently filled us in on some of the enhancements to expect.

The biggest changes are improvements to Windows Communication Foundation (WCF), support for Language Integrated Query (LINQ), and improved designer support.

WCF, REST and SOAP: Tasty alphabet soup

First released in November 2006 with the .NET Framework 3.0, the WCF programming framework improves the ability to use a single framework that can automatically be configured to communicate via Representational State Transfer (REST) and HTTP Query, and will update the SOAP capabilities to be in compliance with the latest WS* specifications.

Chiesa said Microsoft is seeing a greater interest in the use of HTTP Query and REST style service architectures as an alternative to SOAP style requests and what people used to think of as strictly Web services.

Although the basic WCF capabilities were built into .NET 3.0, the REST capabilities are in the template for the first time in .Net 3.5. Chiesa said, "We think this is going to provide a nice productivity boost for people that have to build services in that style."

Requests that come into a service built into WCF are often specified as a Uniform Resource Identifier (URI). In REST there is a requirement to parse the URI, and historically, a programmer might rely on string parsing by splitting the statement with slashes and examining each piece. WCF provides an automated URI parsing and extraction mechanism. In the application code, these names are automatically filled in by whatever was specified in the URI.

SOAP, or Simple Object Access Protocol, is a message format for services and a foundational specification that describes how to package a message that might be transmitted from one point to another. WS* extends the basic SOAP attributes with additional qualities like security, which can provide a digital signature on the content of a SOAP envelope. It allows the receiver to verify the message has not been changed in transit.

Because of SOAP's extensible protocol capabilities, programmers can take advantage of the more advanced services. REST, in contrast, lacks built-in security, although transport security like HTTPS can be used -- and that, too, is a bit of a shortcoming since HTTPS only works between two endpoints that are directly connected. (With WS-Security a programmer can apply message security even if they don't have point-to-point connectivity.)

None of this, though, need be of concern to the Windows Communication Foundation architect. Even with a variety of delivery options, the programming model remains the same. Thus it is possible to write a WCF application that can support both SOAP and REST protocols.

"In other platforms, if you are building a REST style service, there is a particular programming framework you use for that. If you are using SOAP there is a different programming framework, and a different one for binary optimized communication," Chiesa said. "WCF is differentiated from that because there is one programming model for all programming capabilities. You can learn it once and use it for different requirements."

Another Windows Communication Foundation improvement is a smoother incorporation of service-oriented modeling. Many architects want more than just request-response systems, Chiesa said; they want a more conversational style, or, to put it technically, a state-machine workflow.

Thus Microsoft opted to support workflows within WCF for the .NET Framework 3.5. "It's a really nice, easy way to build distributed systems that fit into a SOA [implementation]," Chiesa said.

LINQ it up

The second big enhancement for the .NET Framework 3.5 is support for Language Integrated Query (LINQ). It provides an extension to the Visual Basic and C# languages to add query capabilities.

Previously, developers constructed a string and send it to the database server with a query embedded in it. If they formatted the string wrong, nothing happened. Plus, due to what Chiesa described as "an accident of history," queries to objects, to database and to XML documents are all done differently.

"We thought that might not be the most efficient way to embed data," Chiesa said. "Now, when developers want to extract data, they can use LINQ and the IntelliSense in the tools on the query. They can get compile time syntax checking on that query. It is a much more productive way to deal with data retrieval on the query."

Chiesa said LINQ is something Microsoft does not see in other programming frameworks. "It is going to require less coding and the syntax is much cleaner and more flexible," he said. "It is a more natural way for a developer and how they think about data."

LINQ is not just for databases. A developer can use the same query syntax for data in a collection or an array in memory. The query is a general purpose facility that generalizes the way developers write queries and store data. They need not learn XPath or XML and perform brute force queries. They can use a single query framework.

Better design in Visual Studio

The other major upgrade is the designer support in Visual Studio itself. (Visual Studio, remember, is the IDE through which programmers access the CLR and other important features of the .NET Framework. The IDE and the framework are not one and the same.)

"All of the tools introduced last year and in .NET 3.5 are now built into the developer tools," Chiesa said. This includes WCF and the rest of the .NET Framework 3.0 libraries, ASP.NET AJAX and Visual Studio Tools for Office. As a result, he added, "It is going to be much easier to design the visual layout" of an application.

In addition, Visual Studio 2008 contains designers for services, support for LINQ capabilities and additional support for testing service hosts, Chiesa said.

Tags: .NET Framework 3.5 and Visual Studio 2008 developmentWeb services and SOA implementations in the .NET FrameworkVisual Studio 2008 and Language Integrated Query (LINQ)VIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
.NET Framework 3.5 and Visual Studio 2008 development
Microsoft's message at TechEd: make the most of what you have
How to speed up Visual Studio 2008's slow WPF designer
How to list fonts in WPF using markup extensions and data templates
How to convince management to buy Microsoft Visual Studio 2008
Moonlight 1.0 release brings Silverlight to Linux
Microsoft cuts Visual Studio 2008 upgrade prices as VS 2010 looms
User Account Control (UAC): How to develop code for standard users
How to write installers in Vista that work correctly under UAC
How to elevate programs' privileges correctly using Vista's UAC
Introduction to Vista's user account control (UAC) for developers

Web services and SOA implementations in the .NET Framework
Goin' mobile with Windows
Microsoft "WebSphere Loves Windows" ads tout cost, performance vs. AIX
Microsoft releases new CTP of Oslo SDK
Microsoft's Oslo modeling platform, the M language and .NET
Outgoing Bill Gates says UML on tap in Oslo SOA modeler
Podcast: Windows CardSpace authors speak
Open XML SDK ready for the road
Some of the Zen of Volta
Scaling WCF applications can challenge development teams
Security interoperability with .NET/WSE and WebLogic Workshop 8.1

Visual Studio 2008 and Language Integrated Query (LINQ)
Run Visual Studio Web Tests from a Team Foundation Server Build
LINQ in Visual Studio 2008 addresses object data modeling
LINQ Learning Guide: Third-party LINQ Implementations
LINQ Learning Guide: LINQ to Entities
LINQ Learning Guide: LINQ to SQL
LINQ Learning Guide: LINQ to DataSet
LINQ Learning Guide: LINQ to Objects
LINQ Learning Guide: LINQ Providers
LINQ Learning Guide
LINQ Learning Guide: LINQ and Visual Studio 2008's new language features

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Cosmos  (SearchWinDevelopment.com)
IronRuby  (SearchWinDevelopment.com)
Visual Studio Express (VSE)  (SearchWinDevelopment.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Development Solutions - Silverlight, WinForms, ASP.NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts