[英]Where is the WCF's ABC in the VS2012' azure WCF sample?
It will be a dummy question, but: 这将是一个虚拟的问题,但是:
When i create a WCF service lib in vs 2012, in the app.config I can find information about the service, like this. 当我在vs 2012中创建WCF服务库时,可以在app.config中找到有关该服务的信息,如下所示。
<system.serviceModel>
<services>
<service name="WcfServiceLibrary1.Service1">
<host>
<baseAddresses>
<add baseAddress = "http://localhost:8733/Design_Time_Addresses/WcfServiceLibrary1/Service1/" />
</baseAddresses>
</host>
<!-- Service Endpoints -->
<!-- Unless fully qualified, address is relative to base address supplied above -->
<endpoint address="" binding="basicHttpBinding" contract="WcfServiceLibrary1.IService1">
But when I create an azure wcf project (hosted in a webrole), i could not find any information in the web.config about this. 但是,当我创建一个天蓝色的wcf项目(托管在webrole中)时,我在web.config中找不到与此有关的任何信息。 Where can i find them? 我在哪里可以找到他们? Where is the line, which starts the service? 线路在哪里启动服务?
Thanks for your answer, and sorry for my english. 感谢您的回答,对不起我的英语。
T Ť
查看位于您创建的WCFWebRole根目录中的web.config。
Probably it should be like in Guidance for Using WCF in Windows Azure : 大概应该像在Windows Azure中使用WCF指南中的那样:
<ServiceDefinition name="MyService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
<WebRole name="WebRole1">
…
<Endpoints>
<InputEndpoint name="HttpIn" protocol="http" port="80" localPort="80" />
</Endpoints>
</WebRole>
…
</ServiceDefinition>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.