In the previous page we created a Web service.
The FahrenheitToCelsius() function can be tested here: FahrenheitToCelsius
The CelsiusToFahrenheit() function can be tested here: CelsiusToFahrenheit
These functions use HTTP POST and will send an XML response like this:
Put the Web Service on Your Web Site
Using a form and HTTP POST, you can put the web service on your site, like this:
Fahrenheit to Celsius:
Celsius to Fahrenheit:
How To Do It
Here is the code to add the Web Service to a web page:
No comments:
Post a Comment