28,4Vol28No420077CHINARAILWAYSCIENCEJuly,2007:1001-4632(2007)04-0117-085TWeb艾利锋1,刘春煌1,杜彦华2(1.,100081;2.,100084):5T,Web,Web5TWeb,,,Web,UMLXML,5T,5T:5T,:;Web;;:TP3115;U29812:A:2006-09-02;:2007-02-27:(2006X028):(1981),,,5T,(THDS)(TPDS)(TADS)(TFDS)(TWDS)5[1],,,,5T,,,CORBA()DCOM(),,[2][3],WebServices,Web,Web,Web,,Web,,MDA(ModelDriveArchitecture)(OMG),(PIM)(PSM)[4-7],,,,,WebMDA,Web1WebMDA,,,,,,Web4[8]:PIMPSM,11Web11PIM,Web,(),WebUML,[9],WebUML,(1),1Web,(ActionState)(2),,5(Sequence,ParallelSplit,Synchronization,ExclusiveChoice,SimpleMerge);,Discriminator,Selector[10](ControlFlow)(3)11,,(DataFlow)12PSMPIM,PSM121Web服务的搜索和匹配UDDIWeb,()1WebWeb,,,Web,,Web[11],Web122Web服务调用信息的抽取Web,,(port)(message)(opera-tion),WebWSDL[12],XML,,Case(Re-Eng-ineering)WSDLUML[13],UMLWeb123扩展PIM模型,构建PSM模型Web,,PSM(UMLProfile)2(Stereotype)(TaggedValue)[14],Web11828(1)Web:Web,WebServicesCall,Web;,(Provider)WSDL(wsdl)(Operation)(Service)(PortType)Web,(2)Web:,Web,,,TransformationPSM22WebPSM13PSM,XSLT[15],2,PSMUMLXML,XMLWeb(BusinessProcessExecutionLanguageforWebServices,BPEL4WS),BPEL4WS3131UML文挡派生成XML文档WebXML,1UMLXML,XMIXMI(XMLMetadataInterchange)XML,UMLXMIUMLXMLUMLXMLXMLUML,3132XML文档转换成代码UML,XML,UMLXML,XSLT(ExtensibleStyleSheetLanguageTransformation),XMLXMLWebXSLTUMLProfile,UMLProfileBPEL4WS11UMLProfileBPEL4WSWebServiceCallWebInvokeTaggedvaluesprovider,portType,operationInvokepartner,portType,operationBPEL4WSBPEL4WSTransformationassignXSLT:xsl:templatematch=Activityxsl:whentest=@stereoType=WebServiceor@stereoType=WebServiceCall11945TWebxsl:variablename=operationselect=taggedValue[@tag=operation]/@value/xsl:variablename=portTypeselect=taggedValue[@tag=portType]/@value/xsl:cal-ltemplatename=genDataTransformations/!--OutputBPEL4WSinvoketagcorrespondingtoaUMLWeb-ServiceCallActivity--invokeportType={$portType}operation={$operation}!--SettinginputVariable/outputVariable--xsl:cal-ltemplatename=inputOutputDataObjects//invoke/xsl:when/xsl:templateUMLProfile,WebServiceCall,providerBPEL4WSUMLXML,UMLProfile,XMLBPEL4WS,PSM,,,14,UDDI,Web,Web2MDAWeb5T5T1,5T(HMISTMIS),Web[16],Web,5T,MDAWeb5T215T(1)TADS,TPDS,THDS;4PIM(2);(3),;(4),;(5)HMIS22(1),,,PIM,4(2)PSMUDDIWebWeb,Web12028UDDI(3)Web,WSDL,EA(EnterpriseArchitect),UML5(4)Web,TransformationPSM,65WSDL6PSM(5)RationalRoseXMIEx-port,PSMUMLXMLXML:XMIcontent!--====5T[Model]====--UML:Modelxmiid=G0name=5Tvisibility=publicisSpecification=falseisRoot=falseisLeaf=falseisAbstract=falseUML:NamespaceownedElement!--5T::State/ActivityModel::{top}::CreateMainTainList[ActionState]=====--UML:ActionStatexmiid=G6name=CreateMainTain-Listvisibility=publicisSpecification=falseisDynamic=falseoutgoing=G7in-coming=G5/UML:NamespaceownedElement/UML:Model/XMIcontent(6)XMLXSLTUMT[17],UMTBPEL4WSBPEL4WS7,7PSMBPEL4WS12145TWeb7PSMBPEL4WS,BPEL4WSWebUDDI,35T,,,,MDAWeb,Web5T,5T,BEPL4WS,;,,,,,[1],,,.(5T)[R].:,2005.(LIUChunhuang,SANGYuanqiu,JIANGHui,etal.TheIntegrationScenarioof5TSystem[R].Beijing:Institu-12228teofComputingTechnologies,ChinaAcademyofRailwaySciences,2005.inChinese)[2]RadhakrishnanS.IntegratingEnterpriseApplications:Backgrounder[EB/OL].(2005-04-25)[2006-09-02].ht-tp://cache-[3].SOA[D].:,2005.(WEIDong.ResearchontheSoftwareDevelopmentBasedonSOA[D].Xian:NorthwestUniversity,2005.inChinese)[4],,.[J].,2004,30(2):111-112.(ZHANGXiaohua,HANYongsheng,YUJunhe.SurveyofModelDrivenArchitecture[J].ComputerEngineer-ing,2004,30(2):111-112.inChinese)[5],.WebServices[J].,2004(5):3-6.(RAOYuan,FENGBoqin.NewGenerationofNetworkArchitecture-WebServicesReview[J].ComputerScience,2004(5):3-6.inChinese)[6].Web[D].:,2003.(RENZhihong.ResearchonWebServiceCompositionTechnologies[D].Beijing:InstituteofSoftware,ChinaA-cademyofSciences,2003.inChinese)[7]DavidS,RoyG,IdaS.WebServiceCompositioninUML[C]//Proceedingsofthe8thIEEEIntlEnterpriseDis-tributedObjectComputingConf.California,USA:Monterey,2004.[8]RobertS.AComparisonofXPDL,BPMLandBPEL4WSCapeVisions[EB/OL].(2001-05-19)[2006-09-02].[9]RicardoMB,DuncanDAR.ExtendingUMLActivityDiagramforWorkflowModelinginProductionSystem[C]//Proceedingsofthe35thHawaiiInternationalConferenceonSystemSciences.Brazil,2002:3786-3795.[10].AgentWeb[D].:,2005.(LIUYuanyuan.ResearchonAgent-BasedWebServicesComposition[D].Nanjing:NanjingUniversityofAero-nauticsandAstronautics,2005.inChinese)[11]RoyG,MichaelCJ.Mode-lDrivenSemanticWebServiceComposition[C]//The12thAsia-PacificSoftwareEng-ineeringConference(APSEC).Taibei,2005:8.[12].BPEL4WS[D].:,2005.(LIGang.StudyandImplementationofWorkflowEngineBasedonBPEL4W[D].Xian:XIDIANUniversity,2005.inChinese)[13]GeoffreyS.EnterpriseArchitect[EB/OL].[2006-09-02].[14]JamesR.TheUnifiedModelingLanguageReferenceManual[M].America:Addison-WesleyProfessional,2004.[15],,.MDA[J].,2005(1):147-150.(CHENXiang,WANGXuebin,WUQuanyuan.CodeGeneratingImplementationinModelDrivenArchitecture[J].ApplicationResearchofComputers,2005(1):147-150.inChinese)[16],,.WebService