自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

WCF禁用安全配置指導(dǎo)手冊(cè)

開(kāi)發(fā) 開(kāi)發(fā)工具
WCF禁用安全配置對(duì)于初學(xué)者來(lái)說(shuō)可能遇到的次數(shù)并不是太多,所以對(duì)此不太了解。通過(guò)這篇文章介紹的內(nèi)容,大家應(yīng)該可以初步掌握這一技巧。

WCF中具有安全配置。不過(guò),在實(shí)際使用中我們有時(shí)會(huì)碰到需要關(guān)閉這一安全配置的環(huán)境。今天我們就來(lái)為大家介紹一下有關(guān)WCF禁用安全配置的相關(guān)知識(shí)。#t#

時(shí)不時(shí)會(huì)用到這個(gè)WCF禁用安全配置方法,寫(xiě)在這里,以免忘記了又滿(mǎn)天找。

 

  1. < ?xml version="1.0" encoding="utf-8" ?> 
  2. < configuration> 
  3. < system.web> 
  4. < compilation debug="true" /> 
  5. < /system.web> 
  6. < system.serviceModel> 
  7. < services> 
  8. < service name="CertificateTest
    .Service.CalService"
       
  9. behaviorConfiguration="CalServiceBeConfig"> 
  10. < host> 
  11. < baseAddresses> 
  12. < add baseAddress = "http://localhost:8888/" /> 
  13. < /baseAddresses> 
  14. < /host> 
  15. < !--指定endpoint的bindingConfiguration屬性--> 
  16. < endpoint address ="CalService"   
  17. binding="wsHttpBinding" 
  18. contract="CertificateTest.
    Contract.ICalService"
     
  19. bindingConfiguration="noSecBinding"> 
  20. < identity> 
  21. < /identity> 
  22. < /endpoint> 
  23. < /service> 
  24. < /services> 
  25. < behaviors> 
  26. < serviceBehaviors> 
  27. < behavior name="CalServiceBeConfig" > 
  28. < serviceMetadata httpGetEnabled="True"/> 
  29. < serviceDebug includeException
    DetailInFaults
    ="False" /> 
  30. < /behavior> 
  31. < /serviceBehaviors> 
  32. < /behaviors> 
  33. < !--在binding這里禁用安全性--> 
  34. < bindings> 
  35. < wsHttpBinding> 
  36. < binding name="noSecBinding"> 
  37. < security mode="None">< /security> 
  38. < /binding> 
  39. < /wsHttpBinding> 
  40. < /bindings> 
  41. < /system.serviceModel> 
  42. < /configuration> 

以上就是WCF禁用安全配置相關(guān)技巧講解。

責(zé)任編輯:曹凱 來(lái)源: 博客園
相關(guān)推薦

2010-02-25 13:40:17

WCF禁用安全配置

2010-06-03 14:55:59

Hadoop配置

2010-09-26 10:02:09

JVM優(yōu)化配置

2010-06-07 18:12:39

mrtg 安裝

2009-12-21 10:44:32

2010-01-05 11:26:27

.net Framew

2010-01-04 16:17:50

Silverlight

2009-12-18 15:49:05

Ruby Rmagic

2010-07-15 09:10:08

Perl函數(shù)手冊(cè)

2009-11-06 14:08:06

WCF行為擴(kuò)展

2010-02-24 09:28:37

WCF安全配置

2010-06-04 17:21:48

2010-06-04 17:34:13

Hadoop0.20.

2014-12-24 10:24:55

Java

2009-12-30 17:14:03

Silverlight

2009-12-22 14:54:52

WCF安全

2010-08-04 11:23:15

Flex字符串

2010-10-08 14:31:46

Javascriptsplit函數(shù)

2010-05-19 18:03:07

2010-05-19 18:26:28

SVN服務(wù)器安裝
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)