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

創(chuàng)新互聯(lián)公司是一家集網(wǎng)站建設(shè),鐵嶺企業(yè)網(wǎng)站建設(shè),鐵嶺品牌網(wǎng)站建設(shè),網(wǎng)站定制,鐵嶺網(wǎng)站建設(shè)報(bào)價(jià),網(wǎng)絡(luò)營(yíng)銷,網(wǎng)絡(luò)優(yōu)化,鐵嶺網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強(qiáng)企業(yè)競(jìng)爭(zhēng)力。可充分滿足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時(shí)我們時(shí)刻保持專業(yè)、時(shí)尚、前沿,時(shí)刻以成就客戶成長(zhǎng)自我,堅(jiān)持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實(shí)用型網(wǎng)站。
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配置
- < 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í)。
- < identity>
- < dns value="MyWebServer"/>
- < /identity>
- < /endpoint>
與
- < bindings>
- < wsHttpBinding>
- < binding name="EndpointBinding">
- < security mode="Message">
- < transport clientCredentialType="Windows"
proxyCredentialType="Windows"/>- < message clientCredentialType="UserName"/>
- < /security>
- < /binding>
- < /wsHttpBinding>
- < /bindings>
- < serviceCredentials>
- < serviceCertificate findValue="MyWebServer"
- x509FindType="FindBySubjectName"
- storeLocation="LocalMachine"
- storeName="My"/>
- < userNameAuthentication userNamePasswordValidationMode="Custom"
customUserNamePasswordValidatorType="WcfService.Models.
CustomUserPassword,WcfService" />- < /serviceCredentials>
以上就是我們?yōu)榇蠹铱偨Y(jié)的WCF應(yīng)用技巧。
當(dāng)前題目:兩個(gè)基本W(wǎng)CF應(yīng)用技巧總結(jié)
標(biāo)題網(wǎng)址:http://fisionsoft.com.cn/article/ccchdgi.html


咨詢
建站咨詢
