Go Back   Wiki NewForum > Career Forum (Documents/Tutorials/Advice) > Tech Forum & Tutorial > IT Forum

Reply
Views: 670 Source: CNN18.com, India-Forums, TellyChakkar, India, Times of India, Youtube, BollywoodLife, Rediff  
Thread Tools Rate Thread Display Modes
  #6  
Old 05-03-2009, 04:12 PM
welcomewiki welcomewiki is offline
Member
 
Join Date:
Dec 2008
Location:
India
Posts: 37,336
Default 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:

38
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">









Fahrenheit to Celsius:



action='http://www.example.com/webservices/tempconvert.asmx/CelsiusToFahrenheit'
method="post" target="_blank">









Celsius to Fahrenheit:




Substitute the "www.example.com" in the code above with the address of your web site.
Ads
Reply With Quote
  #7  
Old 05-03-2009, 04:13 PM
welcomewiki welcomewiki is offline
Member
 
Join Date:
Dec 2008
Location:
India
Posts: 37,336
Default 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.
Reply With Quote
Reply

New topics in IT Forum

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump


All times are GMT. The time now is 09:11 AM.


Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2017, vBulletin Solutions, Inc.