SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 314 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

One of these services
is the excellent Company Information web service, which provides basic and extended
stock price information, as well as the name of the company associated with a stock
ticker. Accessing this from a Visual Studio 2005 application is straightforward. The WSDL
(Web Services Description Language) for the web service is hosted at the following
location:
http://www.flash-db.com/services/ws/companyInfo.wsdl
To create a proxy to this WSDL, right-click your project in Solution Explorer, and
select Add Web Reference (see Figure 10-5).
CHAPTER 10 ?–  BUILDING A SAMPLE APPLICATION USING ASP.NET AJAX 232
Figure 10-5. Adding a web reference
A dialog box appears in which you specify the WSDL of the service you are referencing.
In the URL text box, enter http://www.flash-db.com/services/ws/companyInfo.wsdl
(see Figure 10-6).
When you enter a valid WSDL here, the description pane updates with the supported
functions on the web service, as well as the services that are available to this WSDL (multiple
services can be published to a single WSDL). In the Web Reference Name field, you
should enter a friendly name, such as companyInfo, because this is the name that will be
generated for the proxy that talks to the web service on your behalf.


Pages:
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326