Project 1 SOAP Extensions ---- 网页服务程序构件设计指要.docx
《Project 1 SOAP Extensions ---- 网页服务程序构件设计指要.docx》由会员分享,可在线阅读,更多相关《Project 1 SOAP Extensions ---- 网页服务程序构件设计指要.docx(5页珍藏版)》请在优知文库上搜索。
1、Project1SOAPExtensions-网页服务程序构件设计指要詹叔浩TheprojectrequiresapplicationdeveloperstoaddcreditcardpaymentfeatureintoanexistingretailsalessystemIbrachainstore.Stepbystep,thedocumenthighlightshow(odevelopapplicationofSOAPXM1.WebServicesandSOAPWebServices.Anddocumentwillissueimportantdetailsifyouworkonacompl
2、exsystemwhichcontainsbothWebServicesandXM1.WebServices.KEYWORDS:WebServices.XM1.WebServices.SOAP.SOAPExtensions,SOAHeadersModelofClientandServerSOAPCommunicationClientSideReferringto(hefigureabove,wewilladdfeatureofprocessingSOAPmessagetothebelowexistingSOAPWebServiceswithoutSOAPEXIenS沁ns.Also,theSO
3、APmassageincludescostumercreditcardinfosuchascardnumber. ASynehronoUSCailIoaWebmethoddoesnotblockothercallingswhilethiscalliswaitingforaresult.Wheneverdevelopercreatesaproxyclassonclientside.NETautomaticallyenablesasynchronouscallstoWebmethods. SerializationprocessesSOAPmessageandconvertsoneormoreme
4、ssageobjectstotheirXM1.reresentaUon. De-serializationprocessesSOAPmessageandconvertsoneormoremessageobjectstotheirbinaryrepresentation. SOAPRequestmeansaSOAPmessagesentfromclienttoserverforinvokingaWebInCIhod. SOAPResponsemeansaSOPmessagesentfromservertoclientwiththeresultsofaWebmethod.$1SolutionMod
5、elandAlgorithmReferringIothefigurebelow,(heblackdisksindicatewhereSOAPExtensionsperlb11n. TheXM1.WebServiceisnamed1.ookUpService. Theservice1.ookUpServiceexposesaWebmethodnamedRetrieveCardInfo. ThemethodRetiieveCaidInfotakescreditcardinfofromSQ1.serverdatabaseandreturnsit. Wecaptureandinspectandmlif
6、ySOAPmessageinWebmethtxlRetrieveCardInfo.ModelofClientandServerSO.PCommunicationWITHSoAPExtensions$2ThreeMajorCodingSteps1. WecreateHTTPandSOAPXM1.webser,iceusing.NETFramework(selectingConsoleApplication).2. WederiveSOAPExtensionsCIaSSeSfromSoapExtensionbaseclass.Thus,theclassesexposeanditnplenenthe
7、followingmethods:*Getlnitialize(tobecalledonetimewhenasoapextensionisfirstloaded),*Initialize(tobecalledeachtimeforeachcallingSOAPwebservice);*ChainStream(forinterceptingactualsoapmessagestream),and*ProcessMessage(tobecalledwihactualrequestandresponse).3. WeinterceptaSOAPmessageandcallmethodEncrplMe
8、ssageafterserializationstageandcallmethodDecryptMessagebeforedeserializationstage.$3TechnicalNotesWhydorselectSQAPExtensionsratherthanS。APheaderSinthisproject?ThiSprojectrequiresonlycaptureandPrOCCdUreOfconfideniiaiSOAPmessagesinsteadofsecurityconcernssuchasauthentication(Ex:usernameandpasswordfor,l
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Project SOAP Extensions - 网页服务程序构件设计指要 网页 服务 程序 构件 设计