所谓安全性就是给服务添加一个标识,然后允许客户端每次调用服务端的任何操作之前对服务进行身份验证,规避恶意调用,保证客户端的安全。

1  <endpoint address="http://localhost:8000/GIX4/session" binding="wsHttpBinding" contract="Calculator.Service.ICalculatorSession" name="session">
2                 <identity>
3                     <userPrincipalName value="chenlh@huawei"/>
4                 </identity>
5             </endpoint>

 

posted on 2014-03-19 15:11  随心所意  阅读(184)  评论(0编辑  收藏  举报