WCF:調用方未由服務器進行身份驗證


服務器webconfig端配置文件,紅色部分為添加部分

<system.serviceModel>  

<bindings>      

<wsHttpBinding>        

<binding name="NoneSecurity"  maxBufferPoolSize="12000000" maxReceivedMessageSize="12000000" useDefaultWebProxy="false">           <readerQuotas maxStringContentLength="12000000" maxArrayLength="12000000"/>           <security mode="None"/>        

</binding>      

</wsHttpBinding>    

</bindings>

    <services>    

<service name="WcfService2.Service1" behaviorConfiguration="WcfService2.Service1Behavior">     

<!-- Service Endpoints -->     

<endpoint address="" binding="wsHttpBinding" bindingConfiguration="NoneSecurity" contract="WcfService2.IService1">      

------------------------------------------

客戶端將security配置改為<security mode="None"/>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM