Skip to main content

Understanding XML Web Services

  • Chapter
Pro C# 2005 and the .NET 2.0 Platform
  • 349 Accesses

Summary

This chapter exposed you to the core building blocks of .NET web services. The chapter began by examining the core namespaces (and core types in these namespaces) used during web service development. As you learned, web services developed using the .NET platform require little more than applying the [WebMethod] attribute to each member you wish to expose from the XML web service type. Optionally, your types may derive from System.Web.Services.WebService to obtain access to the Application and Session properties (among other things). This chapter also examined three key related technologies: a lookup mechanism (UDDI), a description language (WSDL), and a wire protocol (GET, POST, or SOAP).

Once you have created any number of [WebMethod]-enabled members, you can interact with a web service through an intervening proxy. The wsdl.exe utility generates such a proxy, which can be used by the client like any other C# type. As an alternative to the wsdl.exe command-line tool, Visual Studio 2005 offers similar functionality via the Add Web Reference dialog box.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Andrew Troelsen

About this chapter

Cite this chapter

(2005). Understanding XML Web Services. In: Pro C# 2005 and the .NET 2.0 Platform. Apress. https://doi.org/10.1007/978-1-4302-0060-4_25

Download citation

Publish with us

Policies and ethics