




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、WSE 3.0 的網(wǎng)絡(luò)效力平安 內(nèi)容提要背景引見ASPNETWSE ( Web Services Enhancements )WCF ( Windows Communication Foundation )WSE 3.0 運用較為廣泛的功能塊SecurityPolicyDiagnosticsTools從 WSE 到 WCF互操作性 Interoperability轉(zhuǎn)換 Migration 背景引見 - 攀爬Web Services的階梯ASP.NETWSEWCFASP.NET網(wǎng)絡(luò)效力網(wǎng)絡(luò)根底運用軟件層傳輸層Connected ApplicationsManagementBusinessProc
2、essSecurityMessagingXMLMetadataTCPCustomReliabilityTransactions.NET v2.0 平臺網(wǎng)絡(luò)效力與WS-I Basic Profile兼容定義WebServiceBinding attributeWebServiceBinding(ConformsTo=WsiProfiles.BasicProfile1_1, EmitConformanceClaims=true)WebService(Namespace=Microsoft.TechEdChina.WebServices)public class BPConformance_asmx
3、 WebMethod public string HelloWorldBP() string message = Hello World from a Basic Profile compliant (BP-compliant) Web Service.;return message; Web Services Enhancements (WSE) 網(wǎng)絡(luò)根底運用軟件層傳輸層Connected ApplicationsManagementBusinessProcessSecurityReliabilityTransactionsMessagingXMLMetadataTCPCustomWSE 3
4、.0網(wǎng)絡(luò)效力建立在.NET平臺上定義Policy attributeWebService(Namespace=Microsoft.TechEdChina.WebServices)Microsoft.Web.Services3.Policy(“MyServerPolicy)public class WSE_asmx WebMethod public string HelloWorld () return “Hello World!; WCF網(wǎng)絡(luò)效力網(wǎng)絡(luò)根底運用軟件層傳輸層Connected ApplicationsSecurityReliabilityTransactionsMessagingX
5、MLMetadataTCPCustomManagementBusiness ProcessWCF Web Services全新的 Web Service 界面ServiceContract, OperationContract attributesServiceContractPublic interface IHelloService OperationContractstring Hello();public class HelloService : IHelloService public string Hello () return “Hello; 為什么會有WSE?根本的 ASPNE
6、T 無法滿足工業(yè)界對網(wǎng)絡(luò)平安越來越多的需求WCF 又需求有較長的時間來完成, 至今仍未正式發(fā)行WS-* 通訊協(xié)議也需求有一個微軟產(chǎn)品來支持WSE 就這樣誕生了2003年2月WSE1.0 2005年11月2004年7月時間WSE2.0WSE3.0WSE 3.0 平安 (Security)WSE = Security所支持的平安令牌Username x. 509 Certificate Kerberos tokenSecurityContextToken DerivedKeyTokenIssued Token ( SAML )Custom TokenWSE 3.0 -平安 (Security)WS
7、E 所支持的最常見的網(wǎng)絡(luò)平安實例:UsernameForCertificate AnonymousForCertificate UsernameOverTransportKerberos (Windows)MutualCertificate10 andMutualCertificate11生活實例-客戶端的U/P+效力器的CertApplication ServerInternetIntranet驗證 username/ Password用server certificate來維護由用戶提供的symmetric key,然后再用這symmetric key來維護request用先前的symme
8、tric key來維護responseUsername/Password 用于身份驗證 演示-客戶端的U/P+效力器的CertWSE 3.0 Policy Assertion: UsernameForCertificate WSE 3.0 - PolicyPolicy 定義了一系列Policy AssertionsInput Soap MessageTracingSecurityCustomTraci ngSecurityCustom運轉(zhuǎn)用戶定義的程序OutputSoap Message每個Policy assertion 改動傳輸?shù)男畔?and an output PipelinePolic
9、y文件是用于定義網(wǎng)絡(luò)平安的 演示- Policy Wizard如何用policy Wizard工具輕松地將網(wǎng)絡(luò)平安參與到一個簡單的ASMX Web Service中WSE 3.0 - Diagnostics如何看到最終被傳輸?shù)男畔?出錯后如何看到 stack trace:WSE 3.0 工具(Tools)與 Visual Studio 2005 嚴密結(jié)合Add Web Reference/Update Web ReferenceWSE Settings button單獨的工具(Standalone Tools)WseWsdl3.exeWseConfigEditor3.exeX509Certif
10、icate3.exe從 WSE 3.0 到 WCF - Interop怎樣的WSE 3.0 App才容易和WCF相互操作呢?用容易與WCF相互操作的ASMX Services:簡單的 schemas與Basic Profile兼容的SOAP 1.1用WSE所支持的policy assertionsHttp比TCP容易盡量不要用:rpc/encodedSOAP Extensions與WSE 3.0 interop的WCF bindingCustomBinding with WSS 1.0 可與 WSE 3.0 UsernameOverTransport, MutualCertificate10
11、InteropWSE 3.0 turnkey Policy Security AssertionsWCF custom binding Security ConfigurationUsernameOverTransportsecurity messageSecurityVersion=“WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10” authenticationMode=“UsernameOverTransport”MutualCer
12、tificate10security messageSecurityVersion=“WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10” authenticationMode=“MutualCertificate”與WSE 3.0 interop的WCF bindingCustomBinding with default security version 可與 WSE 3.0 其他的 Policy Security Assertions
13、InteropWSE 3.0 Turnkey Policy Security AssertionsWCF customBinding Security ConfigurationUsernameForCertificateAnonymousForCertificateKerberosMutualCertificate11演示- Interop客戶端: WSE 3.0效力器: WCFAnonymousForCertificate從 WSE 3.0 到 WCF - Migration可將WSE policy assertions 對應(yīng)到 WCF binding 演示- Migration客戶端:
14、WSE policy file WCF binding效力器: WSE policy file WCF bindingAnonymousForCertificate從 WSE 3.0 到 WCF - MTOMMTOM ( Message Transmission Optimization Mechanism ) 是一種傳輸附件的方式. 它便利, 高效,已為業(yè)界廣泛地運用。WSE: MTOM 只是一個Config switch WCF: MTOM是binding的一部分從 WSE 3.0 到 WCF Secure ConversationSecure Conversation是一種加快傳輸平安信
15、息的手段. 它主要是采用了Symmetric Key技術(shù),對傳送多條信息極為有利。WSE: SC是policy的一個attribute WCF: SC是binding的一個attribute從 WSE 3.0 到 WCF Custom Policy AssertionWSE:Custom Policy Assertion是Policy Extension WCF: custom binding element從 WSE 3.0 到 WCF Custom Security TokenWSE: Security Token ManagerseviceCredentials credentials
16、= new CustomCredetials();Host.Description.Behaviors.Remove(typeof(ServiceCredentials);Host.Description.Behaviors.Add(credentials); WCF: ServiceCredential / ClientCredential總結(jié)ASPNET為您奠定了Xml Web Services的根底; WSE 3.0為您提供了Secure Web Services良好的開端; WCF將最終協(xié)助您實現(xiàn)高效,便利及可靠的全新的Web Services在去年年底發(fā)行的WSE3.0, 有以下幾個主要功能:SecurityPolicyDiagnosticsTools假設(shè)您已采用了WSE 3.0來協(xié)助提高您的網(wǎng)絡(luò)平安, 那么它將與即將發(fā)行的WCF兼容 ( interop ) 假設(shè)您想在WCF發(fā)行后, 由WSE 3.0上升至WCF, 那么您也將很輕松地完成這個義務(wù)相關(guān)鏈接在此次大會期間您想更深化地了解W
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 園林建設(shè)專項施工方案
- 2024年廣東省中考滿分作文《當(dāng)好自己故事的主角》3
- 合作商超協(xié)議合同范本
- 胃造口術(shù)后護理
- 農(nóng)莊永久出售合同范例
- 交運股合同范例
- 制定高效的日常生產(chǎn)計劃
- 加強知識管理的有效方式計劃
- 品牌數(shù)字化轉(zhuǎn)型的路徑與挑戰(zhàn)計劃
- 項目管理的最佳實踐計劃
- 2025年安徽電氣工程職業(yè)技術(shù)學(xué)院單招職業(yè)傾向性測試題庫學(xué)生專用
- 2025年皖西衛(wèi)生職業(yè)學(xué)院單招職業(yè)技能測試題庫審定版
- unctad -全球投資趨勢監(jiān)測 第 48 期 Global Investment Trends Monitor,No. 48
- 2025年福建省高職單招計算機類職業(yè)技能測試題及答案(供參考)
- 電鍍園區(qū)現(xiàn)場管理
- 七年級歷史下冊 第一單元 綜合測試卷(人教福建版 2025年春)
- 學(xué)校在鑄牢中華民族共同體意識教育工作情況報告
- 2025年安徽淮北市建投控股集團招聘筆試參考題庫含答案解析
- 《孤獨的小螃蟹》導(dǎo)讀課件
- 2025年湘教版初中地理七年級下冊重點知識點梳理與歸納
- 水泥用大理巖儲量年報
評論
0/150
提交評論