Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi, I am a CS student in their summer break.

I'm anxious to go back, waiting till Fall Semester. I am kind of new to WCF. I have read that Web Services == WCF. I am wondering if there is a way to retain data when I use my service. Because each time I run the service, it doesn't retain my data. So I was thinking of having some sort of external data. Where it will hold this.

I am trying to figure out if there is some fancy way the WCF can retain it's data even after the OS refreshes the service? If not, I was thinking of making it hold the data by creating a folder and text files. Any good ideas?
Posted

1 solution

Web services does not equal (!=) WCF. There's a variety of web services available besides WCF.

WCF deals with communication between endpoints and doesn't deal with data and what you do with it once it gets to an endpoint.

Data is often stored in databases like SQL server. You could also store it in files. Any persistent storage will work, but it's up to you to provide the functionality.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 7-Jul-11 2:48am    
Right, my 5.
--SA
Member 8015046 7-Jul-11 11:04am    
Which web service do you recommend?
Mark Salsbery 8-Jul-11 13:04pm    
You need to research alternatives and choose what's best for you :). I personally am able to host on Windows server platform and use IIS so I really like (and use) WCF. Makes for rapid development, is flexible with hosting options, and flexible in configuration. WCF RIA Services (for Silverlight apps) is nice too. I also use IHttpHandler implementations when I need a simple service that I have full control over. There's also ASP.NET web services.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900