SOA相关技术及规范介绍.ppt_第1页
SOA相关技术及规范介绍.ppt_第2页
SOA相关技术及规范介绍.ppt_第3页
SOA相关技术及规范介绍.ppt_第4页
SOA相关技术及规范介绍.ppt_第5页
已阅读5页,还剩55页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

SOA相关技术及规范介绍 SOA McDonald s麦当劳品牌的创始人是雷 克罗克 他以非凡的经营才能 把卖当劳兄弟的小餐馆变成了世界快餐第一品牌 自己也成为美国乃至全球著企业家之一 据说 当年从麦当劳兄弟手里买下特许经营权的除了克罗克之外 还有一个荷兰人 两人走的是完全不同的经营之路 克罗克只开麦当劳店 而加工牛肉 养牛的钱都由别人去赚 荷兰人却不仅开麦当劳店 而且投资开办了牛肉加工厂 使加工牛肉的钱也流入自己的腰包 后来自己又办了个养牛场 多年过去了 克罗克把买当劳开遍了全世界 而那个荷兰人却窝在荷兰的一个农场里养着200头牛 一 概述 SOA特点 松耦合 服务之间的依赖较小基于契约的 应用由服务之间定义良好的接口和契约联系起来自治的 服务提供商完全控制其所提供的业务逻辑抽象的 对服务消费者来说 服务隐藏了具体业务逻辑的实现可重用 将业务逻辑划分为多个可重用的服务复合的 通过服务的复合完成业务功能可发现的 服务是自描述的 基于服务描述去发现和访问服务 一 概述 WebService相关技术及规范WSIF相关技术及规范SCA SDO相关技术及规范工作流相关技术及规范 一 概述 2 1WSDL规范WSDL2 0Schema Documentation 描述该WSDL功能的元素Import Include 将外部其他的WSDL元素引入到本地WSDL文件中 区别在于include包容其他WSDL的NS 而Import则需要单独声明Types 定义服务中的参数类型 简单类型或者复杂类型 Interface 定义服务的接口 服务的参数名 服务名以及服务异常处理等 WSDL1 1中用PortType表示 二 WebService相关技术及规范 2 1WSDL规范Binding 用一句比较通俗的话来讲就是 该服务怎么发布 怎么向外提供服务 Service 该服务在什么地方发布 外部怎么调用该服务的地址WSDL2 0服务描述例子 二 WebService相关技术及规范 2 1WSDL规范开发中容易遇到的困惑 1 WSDD WSDL SOAP等他们之间是什么关系 WSDD http www oio de axis wsdd 2 TargetNameSpace和DefaultNameSpace之间的区别TargetNameSpace只在定义XMLSCHAME的时候才有用 它的主要作用是标明Schema定义的元素的命名空间 而DefaultNameSpace则只是标明在定义这个Schema中用的默认命名空间比如 http www w3 org 2001 XMLSchema就是在定义一个XSD的时候的默认命名空间 而定义出来的Schema的命名空间则是根据需要指定 ReferenceAdd http www w3 org TR 2004 PER xmlschema 0 20040318 NS 二 WebService相关技术及规范 2 1WSDL规范开发中容易遇到的困惑 3 WhichstyleofWSDLshouldIuse RPC encodedRPC literalDocument encodedDocument literal选择不同的调用类型 其对应的代码也不同Detail 二 WebService相关技术及规范 2 1WSDL规范axis和OracleServerWebServicesRuntime支持Document方式的ValidSignature 二 WebService相关技术及规范 2 2SOAP规范 二 WebService相关技术及规范 2 2SOAP规范Header 辅助数据Body 业务数据Header里面大有乾坤 二 WebService相关技术及规范 2 3WS AddressingWebServicesAddressing WS Addressing definestwointeroperableconstructsthatconveyinformationthatistypicallyprovidedbytransportprotocolsandmessagingsystems Theseconstructsnormalizethisunderlyinginformationintoauniformformatthatcanbeprocessedindependentlyoftransportorapplication Thetwoconstructsareendpointreferencesandmessageinformationheaders AWebserviceendpointisa referenceable entity processor orresourcewhereWebservicemessagescanbetargeted Endpointreferencesconveytheinformationneededtoidentify referenceaWebserviceendpoint andmaybeusedinseveraldifferentways endpointreferencesaresuitableforconveyingtheinformationneededtoaccessaWebserviceendpoint butarealsousedtoprovideaddressesforindividualmessagessenttoandfromWebservices Todealwiththislastusagecasethisspecificationdefinesafamilyofmessageinformationheadersthatallowsuniformaddressingofmessagesindependentofunderlyingtransport Thesemessageinformationheadersconveyend to endmessagecharacteristicsincludingaddressingforsourceanddestinationendpointsaswellasmessageidentity 二 WebService相关技术及规范 2 3WS Addressing Message xs anyURIxs anyURIxs anyURIxs anyURIendpoint referenceendpoint referenceendpoint reference 二 WebService相关技术及规范 2 3WS Addressing EndpointRef xs anyURI xs QName xs QName 二 WebService相关技术及规范 2 4WS Xws atomicws policyws 二 WebService相关技术及规范 WebService相关技术及规范WSIF相关技术及规范SCA SDO相关技术及规范工作流相关技术及规范 3 1WSIF WebServiceInvocationFramework istheorignialgenerationofSCA SDOWSIFstandsfortheWebServicesInvocationFramework ItsupportsasimpleJavaAPIforinvokingWebservices nomatterhoworwheretheservicesareprovided TheframeworkallowsmaximumflexibilityfortheinvocationofanyWSDL describedservice UsingWSIF WSDLcanbecomethecenterpieceofanintegrationframeworkforaccessingsoftwarerunningondiverseplatformsandusingwidelyvaryingprotocols TheonlypreconditionisthatyouneedtodescribeyoursoftwareusingWSDL andincludeinitsdescriptionabindingthatyourclient sWSIFframeworkhasaproviderfor WSIFdefinesandcomespackagedwithprovidersforlocaljava EJB JMS andJCAprotocols ThatmeansyoucandefineanEJBoraJMS accessibleservicedirectlyasaWSDLbindingandaccessittransparentlyusingWSIF usingthesameAPIyouwouldforaSOAPserviceorevenalocaljavaclass 三 WSIF相关技术及规范 3 1WSIF 三 WSIF相关技术及规范 3 1WSIFWSDLJavaExtensionSampleWSDLJMSExtensionSample 三 WSIF相关技术及规范 3 1WSIFWSIF的主要核心就是扩展WSDL 用以来描述不同类型的服务 例如 JMS EJB Java等 另外 在WSIF框架的实现中 可以看到SDO的雏形 ReferenceAdd http ws apache org wsif index html 三 WSIF相关技术及规范 WebService相关技术及规范WSIF相关技术及规范SCA SDO相关技术及规范工作流相关技术及规范 4 1SCA ServiceComponentArchitecture WSIF作为WebService领域的一个规范 提供了一种基于JavaAPI统一调用各种服务的能力 但是WSIF没有形成一个基于组件的架构模型 因此IBM在此基础上推出了一个面向服务的组件模型 ServiceOrientedArchitecture SCA 这个模型不但解决了统一调用的问题 还提出了一个基于组件的构建模型 并提供了许多面向企业计算的QoS能力 因此 从技术的角度来说 SCA是WSIF的延续和扩展 SCA的目的是使用户在构建企业应用时有一个不再直接面对具体的技术细节的层次 而是通过服务组件的方式来构建应用 这种方式也使得客户的企业应用具有良好的分层架构 能够很好的分离应用的业务逻辑和IT逻辑 不但易于应用的构建 也易于应用的更改和部署 四 SCA SDO相关技术及规范 SOA技术路线图 InteroperabilityacrossHeterogeneousEnvironments SimplifiedCompositionandImplementationofServicesandData WebServices SCA SDO BusinessProcessModeling Management Governance WebServices解决了服务之间的互操作性问题 下一步要解决的是如何简化服务的实现和组合 SCA SDO简化SOA编程 Development Integration Assembly SCAAssemblyModelAssembleheterogeneouscomponentsintoservicenetworks SCAClient ImplementationModelSimplifyimplementationofbusinessservicesbyfocusingonbusinesslogicnotoninfrastructure SCABinding PolicyModelExposecomponentsasServicesregardlessofunderlyingtechnology SDO ServiceDataObjectMakesiteasytomanagedataexchangeacrossserviceswithheterogeneousdataformats SCA SDO 服务构件架构 SCA 为SOA专门设计的编程模型 描述了如何利用SOA架构搭建应用Principle Divideapplicationintocomponentswhichimplement service oriented businessinterfacesSeparationofbusinesslogicandcommunicationmanagementUseofmanydifferenttechnologiesBuildingaSOAwithSCAconsistsoftwopartsImplementationofcomponentswhichprovideandconsumeservicesAssemblyofcomponents i e wiringofservicereferencestoactualservices SCA核心概念 Aconfiguredinstanceofanimplementation providesandconsumesservicesDeclarestheexternallyaccessibleservicesofanimplementation anaddressableend pointwhichmessagescanbesentRepresentadependencythatanimplementationhasonaservicethatissuppliedbysomeotherimplementationFortheconfigurationofanimplementationwithexternallysetdatavaluesTechnologythatprovidestheimplementationofoneormoreservices AnassemblyofComponents Services References andtheWiresthatinterconnectthemIntendstomaketeamdevelopmentoflargecompositeseasierRepresentsasetofServicesprovidinganareaofBusinessfunctionalityConnectsservicereferencestoservicesDefinesoneormorebusinessfunctionsdescribetheaccessmechanism service reference property implementation Component Composite内的配置好的实现的实例Morethanonecomponentcanusesameimplementation提供并且消费服务拥有可被设置的属性通过将引用与服务连线来设置构件Wiringtoservicesprovidedbyothercomponentsorbyreferencesofthecomposite Component property value wire target URI Component Example EUROCustomerServiceStockQuoteMediatorComponent Service wire target URI Example MyValueServiceComponent Reference Example Property default property value Example AValueInterestingURI Implementation 实现业务功能的基本元素可以使用各种编程语言Implementationtypes Java C PHP C BPEL SQL Acompositeisalsoanimplementation实现可以 provideservices i e implementinterfacesInterfacetypes Java WSDL useotherservices Servicereferences dependencies useproperties依赖注入Providereferencesandpropertyvaluesatruntime ComponentType default property value ComponentType表达了实现的可配置方面 ComponentType USD Example Composite Introducerecursive Composite Composite包含 ComponentswhicharedeployedtogetherComponentswillruninsameprocessService ServicesofferedforusebycomponentsoutsidethecompositeReference DependenciesonservicesprovidedoutsidethecompositeWiresComposite的外部可见性 OnlyServiceandReferencearevisible componentsinvisible Composite Example AccountServiceComponent EURO Interface 目前SCA规范支持下列接口类型 JavainterfacesWSDL1 1portTypesWSDL2 0interfaces Example Wire wire source URIwire target URI MyValueComposite2showingWires Typicallyrepresentedbyreferenceselements Binding Remotecall cross composite UseofBindingsDefineaccessmechanismforService ReferenceConfiguredindependentlyofimplementationcodeDifferentbindingtypesSCAbindingWebservice statelesssessionEJB EISservice Parametersofremotecalls UseofSDOrecommendedAsynchronousmessagingpatterns System MyValueApplication系统图 Compositesdeployed configuredintoSCAsystem SCAsystemisanotionalentity builtfromthesetofcompositefileswhicharedeployedintoit SDO ThekeyconceptsintheSDOarchitecturearetheDataObject theDataGraphAndtheDataAccessService DAS DataObject RecommendedJavaInterface DataGraph DataGraph RecommendedJavaInterface DataAccessService ReferenceAdd http www osoa org display Main Service Data Objects SpecificationsFileName SDOforJavaSpecificationV2 1 WebService相关技术及规范WSIF相关技术及规范SCA SDO相关技术及规范工作流相关技术及规范 五 工作流相关技术及规范 5 1XPDLVSBPELXPDL XMLProcessDefinitionLanguage isrecommendedbyWFMC Ithasaschemaofprocessdefinition Alotofproductshasadaptedthisstandard BPEL BusinessProcessExecutionLanguage isrecommendedbyIBM Oracle 五 工作流相关技术及规范 5 1XPDLVSBPELBPELandXPDLareentirelydifferentyetcomplimentarystandards BPELisan executionlanguage designedtoprovideadefinitionofwebservicesorchestration specificallytheunderlyingsequenceofinteractions theflowofdatafrompoint to point Forthisreason itisbestsuitedforstraight throughprocessingordata flowsvis a visapplicationintegration ThegoalofXPDListostoreandexchangetheprocessdiagram toallowonetooltomodelaprocessdiagram andanothertoreadthediagramandedit anotherto run theprocessmodelonanXPDL compliantBPMengine andsoon Forthisreason XPDLisnotanexecutableprogramminglanguagelikeBPEL butratheraprocessdesignformatthatliterallyrepresentsthe drawing oftheprocessdefinition Specifically ithas XY orvectorcoordinates includinglinesandpointsthatdefineprocessflows ThisallowsanXPDLtostoreaone to onerepresentationofaBPMNprocessdiagram Forthisreason XPDLiseffectivelythefileformator serialization ofBPMN aswellasanynon BPMNdesignmethodorprocessmodelwhichuseintheirunderlyingdefinitiontheXPDLmeta model therearepresentlyabout70toolswhichuseXPDLforstoringprocessmodels 五 工作流相关技术及规范 ProductsofSupportXPDLJBPMOSWorkflowAquaLogicEnterpriseRepositoryandBPMSuiteFIFlow TheSchemasofdefinitionaredifferenttoeachother 五 工作流相关技术及规范 FIFlowDefinitionSchema 五 工作流相关技术及规范 BPELDefinitionSampleBPEL4WSSchema 五 工作流相关技术及规范 既然BPEL4WS是一个Straightforwardexecutionlanguage 那么在对人工流程支持方面就显得有点力不从心了 所以BPEL4People

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论