Subscribe to Subscribers
Talk to Webmaster Tony John

Online Members

Phagu Mahato
More...


Forums » .NET » Visual Studio »

How to implement WCF Service in asp.net


Posted Date: 14 Jun 2012      Posted By:: R.Jaya kumar (JK)     Member Level: Gold    Member Rank: 73     Points: 1   Responses: 3



hi

How to implement WCF Service in asp.net any one post step by step
reach this


Thanks and Regards
Name : Jayakumar
Email Id :kumaraspcode2009@gmail.com

Do not forget to Rate the post...
Check This url




Responses

#675526    Author: Ravindran        Member Level: Diamond      Member Rank: 3     Date: 14/Jun/2012   Rating: 2 out of 52 out of 5     Points: 3

Hi,

WCF service is similar like webservice right click on your project name and choose App_WebReferences add url of the sevice for reference

Create instance for the WCF service class

protected void Page_Load(object sender, EventArgs e)
{
//create instance for MyServiceClient class
WCFRef.MyServiceClient obj = new WCFRef.MyServiceClient();
//Calling service method using instance
Response.Write(obj.HelloWorld("Ravindran"));
}


Regards
N.Ravindran
Your Hard work never fails



 
#675543    Author: Asheej T K        Member Level: Diamond      Member Rank: 2     Date: 14/Jun/2012   Rating: 2 out of 52 out of 5     Points: 1

Hi,
You can go through below articles for sample code and detailed explanation,

http://www.dotnetspider.com/resources/43535-Sample-WCF-Service-Application-NET.aspx
weblogs.asp.net/sreejukg/archive/2010/12/15/create-and-consume-wcf-service-using-visual-studio-2010.aspx


Regards,
Asheej T K
Microsoft MVP[ASP.NET/IIS]
DotNetSpider MVM

Dotnet Galaxy



 
#675607    Author: Pawan Awasthi      Member Level: Diamond      Member Rank: 4     Date: 15/Jun/2012   Rating: 2 out of 52 out of 5     Points: 3

Hai Jaya,
Creating WCF Service in Visual Studio is quite simple as compare to other tools.
Basically you need to know the main components used in the WCF service- like
A- Address of the service
B- Bindings
C- Contracts
Address represents the address of the service means the location where the service will be available.
Binding means how the service will be accessible. Using tcp, https etc
Contract means what the service contains- methods
So by keeping these things in mind, you can go through the below link to create the WCF service step by step:

http://blogs.msdn.com/b/jmeier/archive/2007/10/15/how-to-create-a-hello-world-wcf-service-using-visual-studio.aspx

Hope it will be helpful to you.

Regards,
Pawan Awasthi(DNS MVM)
+91 8143683708 (pawansoftit@gmail.com)
Outstanding Contribution Award..NTT Data Inc






 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Do you think that the new version of Visual Studio 2012RC will be more popular?
Previous : How to drag and drop multiple rows from xtragrid to xtratreelist?
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.