Home > Asp.Net, WCF > Hello World WCF Service

Hello World WCF Service

Today i wrote WCF Hello world service.I would like post it here.

For More details about WCF and WCF basic i found a good artical on codeproject.com. Read the below artical for more details about WCF and FAQs http://www.codeproject.com/KB/aspnet/WCF.aspx
Here,some quick steps.I used winxp and VS2008.I also attached Source Code link at the end of this post.

  • Requirement

1).NET 3.0 components
2)WCF extensions for Visual Studio

  • Steps
  1. Create the test service.
  2. Add a Hello World Method.
  3. Test your WCF service.
  4. Create the test client.
  5. Add a Web Services reference to your WCF Service.
  6. Add the namespace.
  7. Call your WCF service.

Create New WCF Service Application

Create New WCF Service Application

Service Contract,Data Contract,Operation Contract

Service Contract,Data Contract,Operation Contract

Write Service Methods

Write Service Methods

Test WCF Service

Test WCF Service

View Service in Browser

Add New Project

Add New Project

Form1.cs

Form1Form1.cs

Now set Helloworld as Startup Porject and runt it.(Ctrl+F5)

Hello World

Hello World

Hello WCF

Hello WCF

Download Hello World WCF

‘The happiest people in the world are not those who have no problems, but those who learn to live with things that are less than perfect.’

Advertisements
Categories: Asp.Net, WCF
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: