本文介绍了我在windows aplication中托管了一个WCF服务。它在我执行应用程序但无法浏览WCF服务时工作。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<configuration>
<system.serviceModel>
<bindings>
<!--<wsHttpBinding>
<binding name="wsHttpEndpointBinding">
<security mode="None" >
<message clientCredentialType="Certificate" />
</security>
</binding>
</wsHttpBinding>-->
</bindings>
<services>
<service name="HelloService.HelloService" behaviorConfiguration="mexBehaviour">
<endpoint address="HelloService" binding="basicHttpBinding" contract="HelloService.IHelloService"></endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="HelloService.IHelloService"></endpoint>
<host>
<baseAddresses>
<add baseAddress="http://localhost:8181/HelloService"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="mexBehaviour">
<serviceMetadata httpGetEnabled="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
推荐答案
<endpoint address="mex">
binding="mexHttpBinding"
contract="IMetadataExchange" /></endpoint>
i希望它wi请帮助你......
i hope it will help you......
这篇关于我在windows aplication中托管了一个WCF服务。它在我执行应用程序但无法浏览WCF服务时工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!