WCF服务,我可以在浏览器中查看输出吗?

时间:2011-02-14 18:02:17

标签: c# web-config wcf

我觉得这个问题是如此基本,以至于没有任何教程或文档甚至不愿提及如何做到这一点。我熟悉其他平台上的Web服务,但我是WCF服务的新手。

我已经设置了这样的wsHttpBinding(在web.config中):

<service behaviorConfiguration="IdentityServiceBehavior" name="Com.CompanyName.Service.IdentityService">
    <endpoint address="/Identityservice" binding="wsHttpBinding"
          bindingConfiguration="" contract="Com.CompanyName.Service.IIdentityService" />
    <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration=""
          bindingNamespace="" contract="IMetadataExchange" />
</service>

我尝试使用Fiddler或浏览器点击URL,它只给我400个结果。我已经尝试了一些不同的可能性,URL可能是什么,但没有骰子。我已尝试过此网址及其中的一些变体:http://localhost:61987/IdentityService.svc/Identityservice

如果有人能指出我在这里缺少的基本信息的方向,我将非常感激。

1 个答案:

答案 0 :(得分:2)

您可以使用WCF test client来测试您的WCF服务

相关问题