需要有关WCF netTCPBinding的帮助 [英] Need help regarding WCF netTCPBinding
问题描述
我是WCF的初学者。我需要有关WCF服务的netTCPBindings的帮助。
我是使用自我托管与控制台应用程序。这是我的aap.Config文件。
Hi,
I'm a beginner to WCF .I need a help regarding netTCPBindings of WCF Service.
I'm using the self Hosting with Console Application. Here is my aap.Config file.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service name="HelloService.HelloService" behaviorConfiguration="mexBehaviour" >
<endpoint address="HelloService.HelloService" binding="basicHttpBinding" contract="HelloService.IHelloService"></endpoint>
<endpoint address="HelloService.HelloService" binding="netTcpBinding" contract="HelloService.IHelloService"></endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"></endpoint>
<endpoint address="mex2" binding="mexTcpBinding" contract="IMetadataExchange"></endpoint>
<host>
<baseAddresses>
<add baseAddress="http://localhost:8080"/>
<add baseAddress="net.tcp://localhost:8090"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="mexBehaviour">
<serviceMetadata httpGetEnabled="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
当我运行服务并复制此地址时( http:// localhost:在IE I中8080 [ ^ ])我能看到WSDL文档。但是我无法使用net.tcp:// localhost:8090地址看到wsdl文件。
请让我知道如何在浏览器中使用net.tcp //查看wsdl文档。
预先致谢
Kabita
When I run the service and copy this address(http://localhost:8080[^]) in IE I'm able to see the WSDL document.But I'm unable to see the wsdl document using net.tcp://localhost:8090 address .
Please let me know How can I see the wsdl document using net.tcp// in browser.
Thanks in Advance
Kabita
推荐答案
使用WCF测试客户端测试tcp协议。 http://msdn.microsoft.com/en-us/library/bb552364.aspx [ ^ ]
使用浏览器测试TCP,我怀疑是否可能。
Use WCF test client to test tcp protocol. http://msdn.microsoft.com/en-us/library/bb552364.aspx[^]
Using browser to test TCP, I doubt if it is possible.
这篇关于需要有关WCF netTCPBinding的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!