Prev | Current Page 746 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

Instead, we show you how you can turn the WSDL file into a
.NET class that handles the grunge work of working with XML and invoking the Live Search
web service over the network.
One approach is to use the built-in Add Web Reference feature that comes with Visual
Studio. This feature provides an automated way of generating the proxy code and is the tool
most developers are familiar with. All developers have to do is click through a set of menus to
browse to the WSDL file, and the proxy code is created behind the scenes.
In Visual Studio 2008 and .NET Framework 3.5, a new built-in feature called Add Service
Reference generates a class proxy based on Windows Communication Foundation (WCF),
which was first available in .NET Framework 3.0.
Windows Communication Foundation unifies Microsoft??™s various distributing technologies,
such as remoting, ASMX Web Services, COM+, MSMQ, and WSE, into a single programming
model. The programming model is focused on contract-first development, with .NET attributes
available to decorate Interface and class to customize functionality. The actual protocol, such
as remoting versus web services, can be applied via the System.ServiceModel configuration
section in an application configuration file or in code.


Pages:
734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758