开发者

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

开发者 https://www.devze.com 2022-12-22 22:04 出处:网络
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 w

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 W开发者_运维百科CF service in the same IIS 6 website as the asmx is - is this possible and if so are there any gotchas?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号