如何调试XI应用程序1如何调试XI应用程序版本1.00–2004.9适用产品:ExchangeInfrastructure2.0ExchangeInfrastructure3.0如何调试XI应用程序2©Copyright2004SAPAG.Allrightsreserved.NopartofthispublicationmaybereproducedortransmittedinanyformorforanypurposewithouttheexpresspermissionofSAPAG.Theinformationcontainedhereinmaybechangedwithoutpriornotice.SomesoftwareproductsmarketedbySAPAGanditsdistributorscontainproprietarysoftwarecomponentsofothersoftwarevendors.Microsoft,Windows,Outlook,andPowerPointareregisteredtrademarksofMicrosoftCorporation.IBM,DB2,DB2UniversalDatabase,OS/2,ParallelSysplex,MVS/ESA,AIX,S/390,AS/400,OS/390,OS/400,iSeries,pSeries,xSeries,zSeries,z/OS,AFP,IntelligentMiner,WebSphere,Netfinity,Tivoli,andInformixaretrademarksorregisteredtrademarksofIBMCorporationintheUnitedStatesand/orothercountries.OracleisaregisteredtrademarkofOracleCorporation.UNIX,X/Open,OSF/1,andMotifareregisteredtrademarksoftheOpenGroup.Citrix,ICA,ProgramNeighborhood,MetaFrame,WinFrame,VideoFrame,andMultiWinaretrademarksorregisteredtrademarksofCitrixSystems,Inc.HTML,XML,XHTMLandW3CaretrademarksorregisteredtrademarksofW3C®,WorldWideWebConsortium,MassachusettsInstituteofTechnology.JavaisaregisteredtrademarkofSunMicrosystems,Inc.JavaScriptisaregisteredtrademarkofSunMicrosystems,Inc.,usedunderlicensefortechnologyinventedandimplementedbyNetscape.MaxDBisatrademarkofMySQLAB,Sweden.SAP,R/3,mySAP,mySAP.com,xApps,xApp,SAPNetWeaver,andotherSAPproductsandservicesmentionedhereinaswellastheirrespectivelogosaretrademarksorregisteredtrademarksofSAPAGinGermanyandinseveralothercountriesallovertheworld.Allotherproductandservicenamesmentionedarethetrademarksoftheirrespectivecompanies.Datacontainedinthisdocumentservesinformationalpurposesonly.Nationalproductspecificationsmayvary.Thesematerialsaresubjecttochangewithoutnotice.ThesematerialsareprovidedbySAPAGanditsaffiliatedcompanies(SAPGroup)forinformationalpurposesonly,withoutrepresentationorwarrantyofanykind,andSAPGroupshallnotbeliableforerrorsoromissionswithrespecttothematerials.TheonlywarrantiesforSAPGroupproductsandservicesarethosethataresetforthintheexpresswarrantystatementsaccompanyingsuchproductsandservices,ifany.Nothinghereinshouldbeconstruedasconstitutinganadditionalwarranty.Thesematerialsareprovided“asis”withoutawarrantyofanykind,eitherexpressorimplied,includingbutnotlimitedto,theimpliedwarrantiesofmerchantability,fitnessforaparticularpurpose,ornon-infringement.SAPshallnotbeliablefordamagesofanykindincludingwithoutlimitationdirect,special,indirect,orconsequentialdamagesthatmayresultfromtheuseofthesematerials.SAPdoesnotwarranttheaccuracyorcompletenessoftheinformation,text,graphics,linksorotheritemscontainedwithinthesematerials.SAPhasnocontrolovertheinformationthatyoumayaccessthroughtheuseofhotlinkscontainedinthesematerialsanddoesnotendorseyouruseofthirdpartywebpagesnorprovideanywarrantywhatsoeverrelatingtothirdpartywebpages.SAPNetWeaver“How-to”Guidesareintendedtosimplifytheproductimplementation.Whilespecificproductfeaturesandprocedurestypicallyareexplainedinapracticalbusinesscontext,itisnotimpliedthatthosefeaturesandproceduresaretheonlyapproachinsolvingaspecificbusinessproblemusingSAPNetWeaver.Shouldyouwishtoreceiveadditionalinformation,clarificationorsupport,pleaserefertoSAPConsulting.Anysoftwarecodingand/or如何调试XI应用程序3codelines/strings(“Code”)includedinthisdocumentationareonlyexamplesandarenotintendedtobeusedinaproductivesystemenvironment.TheCodeisonlyintendedbetterexplainandvisualizethesyntaxandphrasingrulesofcertaincoding.SAPdoesnotwarrantthecorrectnessandcompletenessoftheCodegivenherein,andSAPshallnotbeliableforerrorsordamagescausedbytheusageoftheCode,exceptifsuchdamageswerecausedbySAPintentionallyorgrosslynegligent.如何调试XI应用程序4目录1.应用情景................................................................................................................52.引言:图示概览.....................................................................................................53.详细调试步骤........................................................................................................73.1.先决条件........................................................................................................73.2.调试同步接口................................................................................................83.3.调试异步接口..............................................................................................133.4.测试代理......................................................................................................203.5.跟踪代理调用..............................................................................................263.6.代理调用的消息录制..................................................................................293.6.1.客户端的消息录制..............................................................................293.6.2.服务器端的消息录制..........................................................................31如何调试XI应用程序51.应用情景为了分析负责消息接收的应用程序中存在的问题,需要对通过代理框架(ProxyFramework)连接到XI的应用程序进行跟踪调试。2.引言:图示概览XI情景:应用程序代理框架本地集成引擎发送端业务系统应用程序代理框架本地集成引擎接收端业务系统中心集成引擎XI系统如何调试X