.NET Framework Bookmark and Share   
 index > Windows Communication Foundation > hosting legacy WS in WCF with no code change
 

hosting legacy WS in WCF with no code change

Assuming I currently have IIS hosting a .asmx file referring to a Class which inherits from WebService. It is using ASP.NET 2.0 and not WCF. Is there a way to host these web services and serve them through WCF with no code change?

Gustavo Frederico
Hi Gustavo, you're talking about two different technologies there. I'm afraid that you can't do it out of the box.

Regards,
Stipe-Ivan
Stipe-Ivan Latkovic
You could simply annotate your web services with ServiceContract and OperationContract. Check this post: http://kennyw.com/indigo/86

HTH
Fabio
Fabio Cozzolino Blogs: http://dotnetside.org/blogs/fabio http://weblogs.asp.net/fabio
Fabio Cozzolino

Thanks Latkovic. Fabio, as I wrote, I can't change the code.

Gustavo Frederico

You can use google to search for other answers

Custom Search

More Threads

• Access to WCF Service on a remote machine ??
• How to return data from WCF service to populate dropdownlist
• Iam using Visual Studio 2008.I have created windows servuce. whenever I ry to add service reference i get following error.
• Client proxy name
• Best Practice to handle timeout exception in client
• WCF as a Windows Service
• WCF service exception for ClientCrendialType UserName
• Use of [DataMember] when composite class is in another project.
• Wrapping a Message Encoder to determine Message Size in WCF
• Multiple service contract using the same data contract