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

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

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

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

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

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é)任編輯:曹凱 來(lái)源: CSDN
相關(guān)推薦

2010-02-25 09:50:30

WCF路由截獲消息

2010-02-25 18:04:02

WCF IIS宿主

2010-03-01 15:40:04

WCF實(shí)例停用

2010-03-01 16:04:31

WCF服務(wù)契約

2010-03-01 09:48:23

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

2010-02-25 10:52:29

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

2010-02-26 13:40:28

WCF消息頭

2010-03-01 11:24:31

WCF面向服務(wù)

2010-03-01 18:11:40

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

2010-02-24 12:49:39

WCF枚舉

2009-12-21 10:27:52

WCF基本概念

2010-02-22 11:25:50

WCF DateSet

2010-03-01 13:06:49

WCF繼承

2010-02-22 16:19:25

WCF自托管

2010-02-22 16:26:47

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

2009-08-11 15:44:05

C#基本技巧

2009-07-15 18:29:22

Jython應(yīng)用

2011-09-20 15:19:15

Python

2010-11-22 15:48:40

MySQL修復(fù)表

2010-02-22 15:20:54

WCF WS-Disc
點(diǎn)贊
收藏

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