《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. WecaptureandinspectandmS*r
6、vcsTestandDebugWebSrvcsWmUtExecutingClientApplication1.jVebReferenc.WebAppbotionObBSOAPHeadersSOAPExtensionsSOAPRequestSOAPRtpoSensIizabonDesenalizstcnMessageBsckServicesSOAPOsooUDDIWSD1.SOAPProxyToolWebSevresServerREMINDSBothwebservicesandassiationswiththewebserviceslocateatwebserviceSERVERinsteadofclientcomputer.SOAP.Disco.UDD1.andWSD1.aregenerallynotblockedbyfirewallsbecausetheyaredesignedtouseHTTPastransmissionmechanism.TherearebothWebServicesandXM1.WebServicesintheSketchFigure.