Summary


In this chapter, you saw how .NET abstracts the programming of web services. With this abstraction, you can concentrate on building business functionality and exposing this as web services in a similar manner as you might expose other .NET libraries. Some key points in this chapter include the following:

  • Web services are based on open standards. .NET adheres to these standards to ensure that heterogeneous applications can all work together with web services.

  • A .NET web service consists of an .asmx file that points to the code behind the service. This .asmx file represents the URI to the service.

  • You use the WebMethod attribute class to indicate a given method should be defined as a method of a web service.

  • To consume a web service, you set a web reference to that service. Doing so results in a proxy class that you work with to call the web service.

  • You can throw exceptions from a web service using the SoapException class. This same class can be used to catch and handle web service exceptions.




Microsoft Visual Studio 2005 Unleashed
Microsoft Visual Studio 2005 Unleashed
ISBN: 0672328194
EAN: 2147483647
Year: 2006
Pages: 195

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net