ARTICLE

Creating and Accessing WCF Service Library

Posted by Mahadesh Mahalingappa Articles | WCF with C# September 24, 2011
In this article we will learn about Creating and accessing a WCF Service Library in Visual Studio.
Reader Level:

In this article we will learn about Creating and accessing a WCF Service Library in Visual Studio.

Lets start by Creating a WCF Service Library as shown below :

WCFSrvc1.gif

Visual Studio will generate a project as shown below :

WCFSrvc2.gif

Let's not get into the details now. This is just a introduction article of how to create a Windows Service Library . So Hit F5 .

A WCF Test Client opens up as shown below :

WCFSrvc3.gif


The Service gets added to the My Service Projects automatically as shown below :

WCFSrvc4.gif

Select the GetData() method which is created by default by the WCF .

WCFSrvc5.gif

Enter a value, say 2, in the Value field and hit Invoke Button .

WCFSrvc6.gif

The Response is displayed as shown below :

WCFSrvc7.gif

You have successfully created and accessed a WCF Service Library. In future posts we will get into the details of WCF .
 

Login to add your contents and source code to this article
post comment
     
COMMENT USING
PREMIUM SPONSORS
Over-C is a holistic consortium of communications and technology specialists. We build, deploy and market both business as well as consumer products and solutions.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.