偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

兩個(gè)基本W(wǎng)CF應(yīng)用技巧總結(jié)

開發(fā) 開發(fā)工具
我們今天在這篇文章中為大家總結(jié)的兩種常見的WCF應(yīng)用技巧,都包括有生成證書的操作技巧,以及對config進(jìn)行配置的技巧等。

在學(xué)習(xí)WCF開發(fā)工具的過程中,我們需要在不斷的實(shí)踐中去慢慢積累經(jīng)驗(yàn),來充實(shí)我們所掌握的應(yīng)用技巧,這樣才能應(yīng)用于自如。在這里我們就為大家介紹兩種常見的WCF應(yīng)用技巧,方便大家掌握。#t#

WCF應(yīng)用技巧1、生成證書

makecert -r -pe -n CN="MyWebServer" -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localmachine -sky exchange

-sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12

WCF應(yīng)用技巧2、config配置

  1. < endpoint address ="" binding="wsHttpBinding" 
    contract="WcfService.IService1" 
    bindingConfiguration="EndpointBinding"> 

 

部署時(shí),應(yīng)刪除或替換下列標(biāo)識(shí)元素,以反映在其下運(yùn)行部署服務(wù)的標(biāo)識(shí)。刪除之后,WCF 將自動(dòng)推導(dǎo)相應(yīng)標(biāo)識(shí)。

  1. < identity> 
  2. < dns value="MyWebServer"/> 
  3. < /identity> 
  4. < /endpoint> 

  1. < bindings> 
  2. < wsHttpBinding> 
  3. < binding name="EndpointBinding"> 
  4. < security mode="Message"> 
  5. < transport clientCredentialType="Windows" 
    proxyCredentialType="Windows"/> 
  6. < message clientCredentialType="UserName"/> 
  7. < /security> 
  8. < /binding> 
  9. < /wsHttpBinding> 
  10. < /bindings> 

 

  1. < serviceCredentials> 
  2. < serviceCertificate findValue="MyWebServer" 
  3. x509FindType="FindBySubjectName" 
  4. storeLocation="LocalMachine" 
  5. storeName="My"/> 
  6. < userNameAuthentication userNamePasswordValidationMode="Custom"
     customUserNamePasswordValidatorType="WcfService.Models.
    CustomUserPassword,WcfService"
     /> 
  7. < /serviceCredentials> 

以上就是我們?yōu)榇蠹铱偨Y(jié)的WCF應(yīng)用技巧。

責(zé)任編輯:曹凱 來源: CSDN
相關(guān)推薦

2010-02-25 09:50:30

WCF路由截獲消息

2010-02-25 10:52:29

WCF響應(yīng)服務(wù)

2010-02-26 13:40:28

WCF消息頭

2010-03-01 09:48:23

WCF會(huì)話服務(wù)

2010-03-01 15:40:04

WCF實(shí)例停用

2010-03-01 16:04:31

WCF服務(wù)契約

2010-02-25 18:04:02

WCF IIS宿主

2010-03-01 11:24:31

WCF面向服務(wù)

2010-03-01 18:11:40

WCF數(shù)據(jù)契約變更

2010-02-24 12:49:39

WCF枚舉

2010-02-22 11:25:50

WCF DateSet

2009-12-21 10:27:52

WCF基本概念

2010-02-22 16:19:25

WCF自托管

2010-02-22 16:26:47

WCF傳輸數(shù)據(jù)

2010-03-01 13:06:49

WCF繼承

2009-12-21 14:49:27

2010-02-25 15:25:19

WCF通道

2009-08-11 15:44:05

C#基本技巧

2010-02-22 15:20:54

WCF WS-Disc

2010-02-22 17:21:02

WCF消息交換
點(diǎn)贊
收藏

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