Answered by:
1.1 .NET App to reference 4.0 .NET WCF Service

Question
-
User2043281626 posted
Hello,
Is it possible for an older .NET web application (1.1) to reference a newer version (4.0) web service (WCF) without any issues?
Tuesday, August 6, 2013 9:11 AM
Answers
-
User260886948 posted
Hi,
WCF Restful service does not need any mex file to build our porxy client. Call a restful service is same as browsing any URL. You could use HTTPWebRequest class to make http request for a resource.
Please try to refer to the following articles:
#Consuming .Net WCF Rest in different ways:
http://dotnetfriendly.blogspot.co.uk/2010/09/how-to-consume-net-wcf-rest.html .#HttpWebRequest.GetResponse Method in .net 1.1:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.getresponse%28v=vs.71%29.aspx .
Best Regards,
Amy Peng- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, August 8, 2013 2:57 AM
All replies
-
User-306750178 posted
Hi,
Refer below threads
http://stackoverflow.com/questions/3263685/how-to-call-wcf-service-from-net-1-1
http://www.codeproject.com/Articles/162402/Create-a-WCF-Service-that-can-be-Consumed-by-Legac
Tuesday, August 6, 2013 9:17 AM -
User2043281626 posted
I reviewed the links you provided; thanks for the info by the way, and I found that maybe creating a RESTful service might better work. As it elimates alot of the SOAP overhead and in order to use it you simply do a GET, POST, PUT, and DELETE to the service via its url. So I would not have to actually add a web or service reference directly to the WCF this way.
From your experience, can you think of any issues that may arise from taking this option? Security or otherwise.
Tuesday, August 6, 2013 10:03 AM -
User260886948 posted
Hi,
WCF Restful service does not need any mex file to build our porxy client. Call a restful service is same as browsing any URL. You could use HTTPWebRequest class to make http request for a resource.
Please try to refer to the following articles:
#Consuming .Net WCF Rest in different ways:
http://dotnetfriendly.blogspot.co.uk/2010/09/how-to-consume-net-wcf-rest.html .#HttpWebRequest.GetResponse Method in .net 1.1:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.getresponse%28v=vs.71%29.aspx .
Best Regards,
Amy Peng- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, August 8, 2013 2:57 AM