-
We now look at how we can provide a .NET program
that accesses a Web Service.
-
Note: elsewhere, accessing a Web Service is called
consuming a Web Service.
-
Suppose a program running on an external site wants to call the
ToFahrenheit
method provided by the Web Service
that was given earlier.
-
What we can do is to get the code of the program
to generate an HTTP request, ...
-
... send it to the
webserver providing the Web Service, ...
-
... and then decode the reply that gets sent back.
-
Once again, there are tools in the .NET Framework
that help us to do this.