请教 .net Web Service的安全问题?在网上也查了一大堆,但是觉得不是很明白.谁能不能给个解决方案.

解决方案 »

  1.   

    WCF支持多种安全模式。
    普通的Web Service可以使用WSE,参考:
    An introduction to Web Service Security using WSE - Part I
    http://www.codeproject.com/KB/webservices/WS-Security.aspx
      

  2.   

    加个soapheader 传递的信息加密 
      

  3.   

    至于传输上的加密可以使用SSL参考:
    Using authentication certificates to connect to web services with Windows form applications
    http://www.codeproject.com/KB/security/SSLViaCertification.aspx
      

  4.   

    这个方法我也试过.得到一个GUID,可是每次得到的这个值都不一样.怎么才可以让有权限的用户访问呢?
      

  5.   


    哎,可惜了.  VS 2008用了好久,可惜对WCF和WPF还是一点都不懂!