During my tiny technology research, I came accross that ASP.NET Web Service is not available for the .Net 4.0 framework and only available in .net 3.5, and that in 4.0 it has been replaced with WCF, I am just wondering, does the same applies to .NET 4.5
or am I totally heading in the wrong direction here?
The basic idea (and a good advice) is to build a WCF service instead. More flexible and WCF incorporates (multiple versions of) SOAP.
If you still want to make a Fx4 WebService, just create the Fx3.5 one and upgrade it to Fx4.
It's also possible to start with the Empty WebProject and add 1 or more WebServices through the
Add new Item menu.
senthilwaits I understand and thank you so much for your feedback, but lets say I have to build a web service, can I with WCF be able to use the same
web service regardless of the platform consuming the web service?
I am not completely getting what you are tyring to say. If i understood correctly, yes you can use WCF and Webservice in a same project. But accessing Webservice is different than accessing WCF service. If you are trying to write a brand new functionality
try use WCF instead of Webservice. Hope the following links will help you.
You can create and add web services references in .NET Framework 4.0 and 4.5, but as on the previous comments was mention, Microsoft is trying to establish the WCF standar as the common pattern at services, but using the web services legacy, keeps easier
the integration with other platforms for services consumers.
Marked as answer by Angie xu - MSFT on Dec 26, 2012 11:17 PM
Ndamu
Member
59 Points
259 Posts
Web Service for .NET 4.0 and 4.5 ?
Dec 18, 2012 07:46 AM|LINK
During my tiny technology research, I came accross that ASP.NET Web Service is not available for the .Net 4.0 framework and only available in .net 3.5, and that in 4.0 it has been replaced with WCF, I am just wondering, does the same applies to .NET 4.5 or am I totally heading in the wrong direction here?
senthilwaits
Contributor
3832 Points
651 Posts
Re: Web Service for .NET 4.0 and 4.5 ?
Dec 18, 2012 07:53 AM|LINK
It is considered obsolete from 4.0
The basic idea (and a good advice) is to build a WCF service instead. More flexible and WCF incorporates (multiple versions of) SOAP.
If you still want to make a Fx4 WebService, just create the Fx3.5 one and upgrade it to Fx4.
It's also possible to start with the Empty WebProject and add 1 or more WebServices through the Add new Item menu.
Please refer
http://stackoverflow.com/questions/9691909/where-did-asp-net-web-service-go-in-net-framework-4-0
http://msdn.microsoft.com/en-us/library/aa560277.aspx
Senthil Kumar Sundaram
Ndamu
Member
59 Points
259 Posts
Re: Web Service for .NET 4.0 and 4.5 ?
Dec 18, 2012 08:09 AM|LINK
senthilwaits I understand and thank you so much for your feedback, but lets say I have to build a web service, can I with WCF be able to use the same web service regardless of the platform consuming the web service?
senthilwaits
Contributor
3832 Points
651 Posts
Re: Web Service for .NET 4.0 and 4.5 ?
Dec 18, 2012 08:55 AM|LINK
I am not completely getting what you are tyring to say. If i understood correctly, yes you can use WCF and Webservice in a same project. But accessing Webservice is different than accessing WCF service. If you are trying to write a brand new functionality try use WCF instead of Webservice. Hope the following links will help you.
http://www.codeproject.com/Articles/16973/Simple-Web-Service-using-WCF-Windows-Communication
http://msdn.microsoft.com/en-us/library/ms730214.aspx
http://stackoverflow.com/questions/1193124/how-to-consume-wcf-web-service-through-url-at-run-time
Senthil Kumar Sundaram
radamanthys
Member
228 Points
74 Posts
Re: Web Service for .NET 4.0 and 4.5 ?
Dec 21, 2012 02:07 PM|LINK
You can create and add web services references in .NET Framework 4.0 and 4.5, but as on the previous comments was mention, Microsoft is trying to establish the WCF standar as the common pattern at services, but using the web services legacy, keeps easier the integration with other platforms for services consumers.