當通過配置調用netTcp端點操作時,是否可以模擬客戶端身份?還有就是WCF配置客戶端內的部分,如下圖所示:在WCF中模擬客戶端標識w/netTcpBinding
<client>
<endpoint
address="net.tcp://localhost:8081/tcpExample"
binding="netTcpBinding"
bindingConfiguration="myTcpBinding"
contract="TestTcp.IHelloTcp"
name="NetTcpBinding_IHelloTcp">
<identity>
<userPrincipalName value="[email protected]" />
</identity>
</endpoint>
</client>
我的客戶不會失敗,好像連接到客戶端的身份是當前登錄的用戶,也就是我。
您是否正在呼叫與託管您的wcf服務的服務器不同的服務器?如果是這樣,你可能會體驗到代表團的歡樂。 – Will 2009-06-10 19:13:49