Answered by:
WCF service in .net framework 2

Question
-
Is there a way to expose data using WCF services in .NET Framework 2.
As i need to expose the data as Odata using .net framework 2.0
Friday, August 12, 2011 3:21 PM
Answers
-
If you have to use .NET 2.0, you must write everything yourself. OData is an open protocol. So you can create an HttpHandler, and implement the protocol. You will need to use XmlWriter or XmlDocument extensively in your implementation. This is doable. But it is highly recommended that you upgrade to .NET 4, as everything is provided out-of-box.
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
Windows Azure Technical Forum Support Team Blog- Proposed as answer by Ido Flatow. _ Tuesday, August 16, 2011 5:29 AM
- Marked as answer by Steven Cheng - MSFT Tuesday, August 23, 2011 9:06 AM
Monday, August 15, 2011 5:22 AM
All replies
-
WCF and WCF data services did not exist prior to .net 3.5, so the answer is no.
Can you install .net 3.5? it's the same CLR as .net 2, it only contains new assemblies.
Please mark posts as answers/helpful if it answers your question.
Senior Consultant on WCF, ASP.NET, Siverlight, and Entity Framework. Author of Microsoft's Official WCF 4 Course. Co-author of the Microsoft HPC/Azure burst whitepaper.
Visit my blog: http://blogs.microsoft.co.il/blogs/idof- Proposed as answer by Ido Flatow. _ Tuesday, August 16, 2011 5:29 AM
Friday, August 12, 2011 3:55 PM -
WCF didn't exist in .NET 2. It was originally added in .NET 3, and really made very good in 3.5 (and improved again in 4.0). Writing the service itself in .NET 2 wont' work using WCF.
That being said, if you're trying to connect to an OData service from a .NET 2 client, this is possible. For details, see http://blog.falafel.com/blogs/jonathantower/11-02-01/Consuming_an_OData_Feed_in_NET_2_0.aspx It's just not quite as automatic as in .NET 4.
Reed Copsey, Jr. - http://reedcopsey.com
If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".Friday, August 12, 2011 3:57 PM -
I read the post but the thing i need to expose data using framework 2 so should i proceed in the similar way as it is mentioned for consuming the data??Saturday, August 13, 2011 2:46 AM
-
If you have to use .NET 2.0, you must write everything yourself. OData is an open protocol. So you can create an HttpHandler, and implement the protocol. You will need to use XmlWriter or XmlDocument extensively in your implementation. This is doable. But it is highly recommended that you upgrade to .NET 4, as everything is provided out-of-box.
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
Windows Azure Technical Forum Support Team Blog- Proposed as answer by Ido Flatow. _ Tuesday, August 16, 2011 5:29 AM
- Marked as answer by Steven Cheng - MSFT Tuesday, August 23, 2011 9:06 AM
Monday, August 15, 2011 5:22 AM -
Thank you so much for your replies I'll try to make the service work as i am an employee of the company they have not yet upgraded themselves from framework 2 so i will need to use the work environment provided to me by them.
Thank you so much guys.
Monday, August 15, 2011 1:11 PM