[英]Windows Azure - Include a WCF service in a virtual directory of a web role
Is it possible to have a wcf service role live in a virtual directory (or the equivalent not sure if that word is the appropriate one for Azure) of a web role on Azure. 是否可以在Azure上的Web角色的虚拟目录中驻留wcf服务角色(或不确定该词是否适合Azure)。
For example: 例如:
www.mydomain.com <- contains the web role or website
www.mydomain.com/myservice.svc <- contains the WCF service
I've seen people suggest that you can change the config to allow for virtual directories, however I have RDPed into both VMs and they appear not to share the same files on disk. 我见过有人建议您可以更改配置以允许虚拟目录,但是我已经将RDP绑定到两个VM中,它们似乎不共享磁盘上的相同文件。
I am Azure newbie, please forgive the terminology. 我是Azure新手,请原谅术语。 But is it possible to do what I am wanting? 但是可以做我想做的吗?
A web site and a WCF service can be accessed using the URLs you listed above if they are both in the same web role. 如果网站和WCF服务都在同一Web角色中,则可以使用上面列出的URL访问它们。 You will get the URLs you describe above if you do the following: 如果执行以下操作,则将获得上面描述的URL:
http://yourlocalhostaddress/Service1.svc
. 然后导航到http://yourlocalhostaddress/Service1.svc
。 You'll see the typical "You have created a service" landing page for a new WCF service. 您将看到新WCF服务的典型“您已创建服务”登录页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.