Skip to Content
Programming ASP.NET, 3rd Edition
book

Programming ASP.NET, 3rd Edition

by Jesse Liberty, Dan Hurwitz
October 2005
Intermediate to advanced
956 pages
27h 19m
English
O'Reilly Media, Inc.
Content preview from Programming ASP.NET, 3rd Edition

Chapter 16. Consuming Web Services

The previous chapter gave an overview of web services and described how to create a web service. This chapter explains how to create a web service client application, also called a web service consumer. The consuming application can be a web page, another web service, or a desktop application.

Once a web service is created and made available to consumers on the Internet, it is up to the developer creating the client application to find the web service, discover what methods are available, create the client proxy, and incorporate the proxy into the client. The client can then make method calls against the remote web service as though it were making local calls. In fact, the client application is making local method calls against the proxy—it just behaves as if it is making calls directly to the web service over the Internet.

Depending on the requirements of the consuming application, you can let VS2005 do all the work of creating and referencing the proxy, you can do it all manually, or somewhere in between. This chapter will demonstrate the range of possibilities.

Once the proxy is created, compiled, and referenced, the consuming application can make method calls against the remote web service. As long as the signatures and return types of the exposed web service methods do not change, the proxy will continue to work.

Tip

The signature of a web method consists of the name of the method and its parameter list.

The web service can have additional web ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Programming ASP.NET Core, First edition

Programming ASP.NET Core, First edition

Dino Esposito
Programming ASP.NET, Second Edition

Programming ASP.NET, Second Edition

Jesse Liberty, Dan Hurwitz

Publisher Resources

ISBN: 059600916XErrata Page