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:
method="POST">
Fahrenheit to Celsius: | size="30" name="Fahrenheit"> |
value="Submit" class="button"> |
method="POST">
Celsius to Fahrenheit: | size="30" name="Celsius"> |
value="Submit" class="button"> |
No comments:
Post a Comment