Tone
Tone

Reputation: 2853

Can I host both a webservice and a WCF service on the same website in IIS?

I currently have a website where I'm hosting a webservice with several web methods, I need to add some new web methods, but I want to move to the WCF services model rather than continue with asmx. I want to be able to host the WCF service in the same IIS 6 website as the asmx is - is this possible and if so are there any gotchas?

Upvotes: 1

Views: 666

Answers (1)

John Saunders
John Saunders

Reputation: 161821

You could host the WCF service in a virtual directory under the one holding the ASMX service. You will have to make the new virtual directory be an application, so it can have its own bin folder.

BTW, you distinguish "web services" from "WCF services". This is a false distinction. WCF is the replacement for the legacy ASMX technology, and can do both plain SOAP like ASMX services, or just about anything else.

Upvotes: 4

Related Questions