欢迎来到课桌文档! | 帮助中心 课桌文档-建筑工程资料库
课桌文档
全部分类
  • 党建之窗>
  • 感悟体会>
  • 百家争鸣>
  • 教育整顿>
  • 文笔提升>
  • 热门分类>
  • 计划总结>
  • 致辞演讲>
  • 在线阅读>
  • ImageVerifierCode 换一换
    首页 课桌文档 > 资源分类 > DOCX文档下载  

    Project 1 SOAP Extensions ---- 网页服务程序构件设计指要.docx

    • 资源ID:1470478       资源大小:97.15KB        全文页数:5页
    • 资源格式: DOCX        下载积分:5金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要5金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    Project 1 SOAP Extensions ---- 网页服务程序构件设计指要.docx

    Project1SOAPExtensions-网页服务程序构件设计指要詹叔浩TheprojectrequiresapplicationdeveloperstoaddcreditcardpaymentfeatureintoanexistingretailsalessystemIbrachainstore.Stepbystep,thedocumenthighlightshow(odevelopapplicationofSOAPXM1.WebServicesandSOAPWebServices.AnddocumentwillissueimportantdetailsifyouworkonacomplexsystemwhichcontainsbothWebServicesandXM1.WebServices.KEYWORDS:WebServices.XM1.WebServices.SOAP.SOAPExtensions,SOAHeadersModelofClientandServerSOAPCommunicationClientSideReferringto(hefigureabove,wewilladdfeatureofprocessingSOAPmessagetothebelowexistingSOAPWebServiceswithoutSOAPEXIenS沁ns.Also,theSOAPmassageincludescostumercreditcardinfosuchascardnumber. ASynehronoUSCailIoaWebmethoddoesnotblockothercallingswhilethiscalliswaitingforaresult.Wheneverdevelopercreatesaproxyclassonclientside.NETautomaticallyenablesasynchronouscallstoWebmethods. SerializationprocessesSOAPmessageandconvertsoneormoremessageobjectstotheirXM1.reresentaUon. De-serializationprocessesSOAPmessageandconvertsoneormoremessageobjectstotheirbinaryrepresentation. SOAPRequestmeansaSOAPmessagesentfromclienttoserverforinvokingaWebInCIhod. SOAPResponsemeansaSOPmessagesentfromservertoclientwiththeresultsofaWebmethod.$1SolutionModelandAlgorithmReferringIothefigurebelow,(heblackdisksindicatewhereSOAPExtensionsperlb11n. TheXM1.WebServiceisnamed1.ookUpService. Theservice1.ookUpServiceexposesaWebmethodnamedRetrieveCardInfo. ThemethodRetiieveCaidInfotakescreditcardinfofromSQ1.serverdatabaseandreturnsit. Wecaptureandinspectandm<lifySOAPmessageinWebmethtxlRetrieveCardInfo.ModelofClientandServerSO.PCommunicationWITHSoAPExtensions$2ThreeMajorCodingSteps1. WecreateHTTPandSOAPXM1.webser,iceusing.NETFramework(selectingConsoleApplication).2. WederiveSOAPExtensionsCIaSSeSfromSoapExtensionbaseclass.Thus,theclassesexposeanditnplenenthefollowingmethods:*Getlnitialize(tobecalledonetimewhenasoapextensionisfirstloaded),*Initialize(tobecalledeachtimeforeachcallingSOAPwebservice);*ChainStream(forinterceptingactualsoapmessagestream),and*ProcessMessage(tobecalledwihactualrequestandresponse).3. WeinterceptaSOAPmessageandcallmethodEncrplMessageafterserializationstageandcallmethodDecryptMessagebeforedeserializationstage.$3TechnicalNotesWhydo¼rselectSQAPExtensionsratherthanS。APheaderSinthisproject?ThiSprojectrequiresonlycaptureandPrOCCdUreOfconfideniiaiSOAPmessagesinsteadofsecurityconcernssuchasauthentication(Ex:usernameandpasswordfor',log-in")andauthorization(Ex:applicationrole)andencryption(Ex.convertingtextlosecretcode). SOAPCX)CnSiOnSareaclassIobeinvokedduringtheserializationordeserializationofSOAPmessageandtoallowdevelopertoinsertcustomer-owncodeintoSOAPrequestandresponseprocessloop.SOAPextensionsareusuallydeployedinpairswithmatchinglheextensiononclientandserver. SOAPheadersareaclasslobederivedfromSoapHeaderbaseclassandrepresentlhedatainaparticularSOAPheader.SOAPheadershandleauthentication,encryption,andsigningdirectlyinSOAPmessages.$4WholePictureofVVebServicesandXM1.WebServicesShowingastheFigbelow,supposeanobjectofclientapplicationinteractswithoneobjectofanotherclientapplicationoverinternetandserverofwebservices.ReferringtotheSketchFigureonthelastpage,wediscussthetechnicaltermsbelow.(示意图) SOAP(SilnPlCObjectAccessProtocol)isastandardoencapsulatemessagesbetweenWebservicesSerVerandWebservicesclientwhenthemessageobjects(aswellasmethodsandproperties)aretransmittedasXM1.formatthroughHTTPchannel.Remember,messageobjectscannobeinvoked! DiscoisaMicrosoftstandardtodiscoverdocumentsofWebservicesonserverbydirectoryconnectingtotheserver. UDDI(UniversalDescription.Discovery,andIntegration)isamultivendorstandardtodiscovercodedetails(documents,classes,methods,andsoon)oftheWebservicesandotheronlinebusinesssericesbydirectoryvia(heInternet. VVSD1.(WebSerViCeDescription1.anguage)isastandardodescribetheinterfacebetweentheWebservicesandtheWebSerViCeSserver.InIact,WSD1.letdevelopertoretrieveinformationontheclassesandmethodssupportedbyaparticularWebservice. Disco.exeisa100lrelatedIoDiscotodiscoverdocumentsofWebSerViCeSonserver. VVsd1.exemaycreatePrOXyClaSSconnecedloWebReferenCeforcommunicatingwithXM1.Webservice.Also,aIQCalProxyCIUSSconnectedtoWebReferencemaybecreatedforcommunicatingwithWebservice.WhendowcselectthetechniquesWsdl.cxc?TherearebothofWebserviceandXM1.Webserviceintheexistinginternetsystem.Andadevelopermayaddnew-bothsendeestotheexistingsystem. SOAPProxyToolisused(otestanddebugWebservicewithoutexecutingWebserviceclientapplication. XW1.wireformatistheStnictureofactualXM1.passedbetweenWebservicesserverandWebSerViCeSclient.Byusingattributes,.NETallowsdevelopertotailorXM1.wireformatofSOAPmessageinordertointeroperatewithotherWebservicescomponentstonotbecreatedby.NETframeworkor.NETlanguage.(示意图)SketchFigureShowingArchitectureOfWebServiceandXM1.WebService(ContinuingtotheNextPage)ManulyCreateWsd1.exe.NETStudoAutoCfteDEVE1.OPERADDVVetSerVgCbertProduce1.essaaeTo1.ooiProxyClassOnlyforWebServicesNtffXM1.Wt>S*rvcsTestandDebugWebSrvcsWmUtExecutingClientApplication1.jVebReferenc.WebAppbotionObBSOAPHeadersSOAPExtensionsSOAPRequestSOAPRtpoSensIizabonDesenalizstcnMessageBsckServicesSOAPOsooUDDIWSD1.SOAPProxyToolWebSevresServerREMINDSBothwebservicesandass<iationswiththewebserviceslocateatwebserviceSERVERinsteadofclientcomputer.SOAP.Disco.UDD1.andWSD1.aregenerallynotblockedbyfirewallsbecausetheyaredesignedtouseHTTPastransmissionmechanism.TherearebothWebServicesandXM1.WebServicesintheSketchFigure.

    注意事项

    本文(Project 1 SOAP Extensions ---- 网页服务程序构件设计指要.docx)为本站会员(夺命阿水)主动上传,课桌文档仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知课桌文档(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-1

    经营许可证:宁B2-20210002

    宁公网安备 64010402000986号

    课桌文档
    收起
    展开