2

I want to implement a Web Service in C#. Basically, expose some methods to my clients through a Web Service

Is there an easy example of how can I do this?

How should I declare the methods, classes, etc?

2
  • 5
    I'm with Oded. - I despair seeing this sort of question when a simple google search would have brought you all you needed. Seems stack overflow is getting more and more of this type of question when it really is easier to google (which in itself will bring back a massive number of stack overflow refs) - for a self moderating community, we seem to be lacking self moderation :( Commented May 2, 2011 at 7:44
  • Questions like this are already discussed on meta. Hopefully we will have new close reason soon: meta.stackexchange.com/questions/86043/… SO is for asking questions about problem you have not for asking questions where simple query in google give you results: google.com/… Commented May 2, 2011 at 8:26

2 Answers 2

3

You want to look at Windows Communication Foundation (WCF) web services. This is the latest implementation of services on the .NET stack.

Eric White has a great "File > New..." blog on getting started.

http://blogs.msdn.com/b/ericwhite/archive/2010/05/11/getting-started-building-a-wcf-web-service.aspx

Sign up to request clarification or add additional context in comments.

Comments

2

Here there are some examples:

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

http://www.15seconds.com/issue/010430.htm

http://blogs.sitepoint.com/net-web-services-5-steps/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.