How to use a web service?

Hello group,

I need to write a small application to consume a web service using C# and I'm new to it. Where can I learn about it? Is there any available web service (or maybe something like sandbox) that I can use?

any help is appreciated.

Regards.
akohanAsked:
Who is Participating?
 
Rose BabuConnect With a Mentor Senior Team ManagerCommented:
Hi,

try looking on the tutorial links below

http://www.codeproject.com/KB/webservices/WebServiceConsumer.aspx

http://www.xefteri.com/articles/show.cfm?id=15

http://www.techrepublic.com/article/consume-a-web-service-in-a-net-app/5768122


as i knew, there is two types of webservice return type is available.
1. simple datatype returns single value (i.e., returns string or integer or boolean etc...)
2. complex datatype (multiple datatypes returned like array, structure values)

so while consuming webservice, first you look on the request and response formats.

from the wsdl file you can get the request/response formats.

let us know if u need any clarification.

Happy Programming.
0
 
iHadiConnect With a Mentor Commented:
Hi,

You can create your own simple webservice, then create an application to consume it. This short video describes just that:

http://www.youtube.com/watch?v=qOqEKpYbTzw 
0
 
PCableGuyConnect With a Mentor Commented:
If you're looking to use a publicly available Web service, below are a couple to consider. You will need to know how to parse the data that's returned. For instance, Weather Channel returns the data in XML.

Weather Channel has an API
http://www.weather.com/services/xmloap.html

Yahoo
http://developer.yahoo.com/

If you're looking to do something simpler, these links are a good start.
http://www.codeguru.com/csharp/csharp/cs_webservices/tutorials/article.php/c5477/

http://www.asp.net/general/videos/an-introduction-to-soap-based-web-services-with-visual-web-developer-2008
0
 
akohanAuthor Commented:

Thanks to all.

Regards
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.