#6
|
||||||||
|
||||||||
Web Services How to Use
Using the Web Service Example
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 will send an XML response like this: Put the Web Service on Your Web Site Using a form and the HTTP POST method, 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: action='http://www.example.com/webservices/tempconvert.asmx/FahrenheitToCelsius' method="post" target="_blank">
action='http://www.example.com/webservices/tempconvert.asmx/CelsiusToFahrenheit' method="post" target="_blank">
Substitute the "www.example.com" in the code above with the address of your web site. |
#7
|
|||
|
|||
You Have Learned Web Services, Now What?
Web Services Summary
This tutorial has taught you how to convert your applications into web-applications. You have learned how to use XML to send messages between applications. You have also learned how to export a function (create a web service) from your application. Now You Know Web Services, What's Next? The next step is to learn about WSDL and SOAP. WSDL WSDL is an XML-based language for describing Web services and how to access them. WSDL describes a web service, along with the message format and protocol details for the web service. If you want to learn more about WSDL, please visit our WSDL tutorial. SOAP SOAP is a simple XML-based protocol that allows applications to exchange information over HTTP. Or more simply: SOAP is a protocol for accessing a web service. |