Click here to Skip to main content
15,743,605 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to start with web services.

Can u give some examples for web services and i would like to know the advantages of Web Services.

Sounds like you have some reading to do, but I'll give you a quick run down.

I can create a web service on a server. That web service will have a URL, just like an HTML page would have. The web service can expose several web methods. When you send XML to the web service URL, part of the XML specifies which web method to use. The XML also contains any parameters you want to send to the method. The XML gets deserialized by the .Net Framework and the method then gets called on the server and the server does some processing. Then the method on the server returns some values, which get serialized into XML that is sent back to the client that originally sent the XML to the server. The client then deserializes that XML and does whatever it wants with the data.

An example usage of a web service would be to provide weather data. The web service would have a web method that would return information about weather in a certain region. That region could be passed into the web method as a parameter.
Share this answer
Get a basic book on web services or search google for some beginners tutorials.
Share this answer
1. First learn about how web services evolved. This will clear the thoughts about when to use web services. Check SOA here[^]

2. Found an article on CP itself here[^]. This can be a good starter

3. Simple google search can give you loads of web service advantages here[^].
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900