`

SOA & Web Services - What Is SDO?

阅读更多

Part One: The value of many of the facets of SDO

  Service Data Objects (SDOs) simplify and unify Service Oriented Architecture (SOA) data access and code.

SDO complements the strength that SCA (Service Component Architecture) offers for simplifying development of SOA-based solutions. SCA handles the composition of service networks and SDO focuses on simplifying data handling. These technologies are getting significant support in the industry. The development of the SDO and SCA specifications is in the hands of the Open Service Oriented Architecture collaboration (www.osoa.org) and open source implementations of these specifications are being developed in the Apache Tuscany incubator project (http://incubator.apache.org/tuscany).

In this two-part article we use a scenario to demonstrate the value of many of the facets of SDO.

 Some History

The first SDO specification was published in November 2004 as a result of collaborative between IBM and BEA. The Eclipse Foundation developed an open source implementation of this SDO 1 specification. SDO primarily addressed the lack of general applicability of the existing technologies such as JAXB and JDO. Around that time Microsoft entered this space with ADO.NET, offering a slightly different technical perspective. The SDO 2.0.1 specification appeared late in 2005 and is continuing to evolve, with wider industry involvement; at the time of writing revision 2.1 is imminent and revision 3.0 is in the pipeline.

 

SDO provides flexible data structures that allow data to be organized as graphs of objects (called data objects) that are composed of properties. Properties can be single or many valued and can have other data objects as their values. A data object can maintain a change summary of the alterations made to it, providing efficient communication of changes and a convenient way to update an original data source. SDO naturally permits disconnected data access patterns with an optimistic concurrency control model.

SDO offers a convenient way to work with XML documents. SDO implementations provide helpers to populate a data graph from both XML documents and relational databases and to read SDO metadata from an XML Schema Definition (XSD). Data objects can be serialized to XML and the metadata can be serialized to an XSD file (see Figure 1).

Data Objects can be introspected using the SDO metadata API to get information about types, relationships, and constraints.

SDO delivers unified and consistent access to data from heterogeneous sources. This provides both a simple programming model for the application programmer and lets tools and frameworks work consistently across those heterogeneous data sources.

SDO offers a single model for data across the enterprise.

The diagram below shows a WebUI client accessing data from a variety of sources, mediated by SDO. Web applications typically operate in a semi-connected fashion and rely on optimistic-concurrency. SDO is well suited to this environment, where data can be manipulated remotely and then a summary of the changes can be delivered back to the data sources (see Figure 2).

The following sections will introduce SDO in more detail.

A Scenario
This example is based on an imaginary project inspired by some real-world scenarios. A hypothetical group of universities, hospitals, and companies have embarked on a long-term collaboration to study some family of diseases that has both a genetic and environmental component. They will need to exchange the medical histories of the people they're treating and studying, and also exchange the medical histories of relatives. The data will likely come from disparate sources; basic patient data will probably be in a relational database; data from medical investigations conducted as part of this research project will be in XML documents; other medical data may come from less well known formats or custom sources. The amount of data about any given person will vary greatly. A long-standing patient may come with an extensive medical history. A relative might have little beyond name and relationship. This data has to be assembled into a coherent manageable whole, and SDO is an attractive option for representing a complicated mix of data about each person and potentially maintain a graph of such entities. For this example, we can't even assert that the graph is a (family) tree because with adoption, re-marriage, fertility treatment, and so on, one person's associations with others can be quite intricate.

The various institutions involved may not want to give unrestricted access to their data sources, although they've agreed to supply pieces of it as needed. A hospital may be willing to provide the medical data associated with one patient as part of an investigation, but they won't permit open access to their entire patient record database. Similarly, a company will want to limit access to commercially sensitive material. SDO provides a convenient way for the owner of the data to deliver to outsiders a subset of that data of their own choosing.

We'll now show some of the key values of SDO through this scenario.

To illustrate where an SDO feature helps, consider a scenario where a hospital refers a patient to a university for further investigation. Relevant data will have to flow from the hospital to the university, and it may well come from a variety of different sources. Assume that name, age, records of visits, and so forth comes from an SQL database, while specific medical data (the results of tests) are in XML documents. Using standard SDO features it's straightforward for the hospital to combine these various sources into a data object and send that, letting users of the data access it via SDO's unified API.

The university does whatever it does with the patient, and then updates the SDO and sends it back. The change history in the SDO lets the hospital apply the updates to its various data repositories without the university ever needing to know the detail of those repositories.

It's unlikely that these updates will clash with other updates made independently by the hospital, but if they do, the use of an SDO change summary ensures that this is detected and sorted out (probably manually in this case). The software component responsible for moving data between the data source (for example, a relational database in this case) and SDO is called a Data Access Service (DAS). A DAS can typically also handle conflicting updates.1

Using SDO as the data exchange format makes the system tolerant of the considerable variation to be expected in such a loosely coupled system. It's inevitable that, sooner or later, the versions of the applications that are sending and receiving data will get out-of-step. In fact, this may be usual. However, the fact that an SDO can arrive with its own metadata means that an older application can always retrieve what it wants from a newer (and presumably richer) input SDO - ignoring anything that it doesn't recognise. In the reverse case, a newer application can similarly recognise that the information it has received is from an older version and compensate accordingly.

In the previous scenarios, we've concentrated mostly on XML and SQL data sources. Now, let's suppose that in one hospital the results from the biochemistry lab are delivered in HL7 message format. This message format is widely used in the healthcare industry but is virtually unknown outside it, and so there's no off-the-shelf way to read such messages into an SDO. At this point there are several choices. We could use some broker-style product to reformat the HL7 into XML and then read it into an SDO or we could pay someone to write a new DAS that would populate an SDO directly from HL7. Since our collaborators are using an open source implementation of SDO, however, they opt to write their own DAS and donate it to the Apache Software Foundation's Tuscany project.

Other approaches exist to linking these various organisations, such as putting some software intermediary in the middle and using that to convert the data as needed. To do so though requires knowledge of all the possible input and output formats and how to convert between them. In such a loose collaboration there simply is no such central authority.

We now turn our attention to presenting the details of SDO using some code fragments.

分享到:
评论

相关推荐

    SOA&Webservices内部培训

    综上所述,SOA与Web服务是现代企业信息化的关键技术,利用XML作为数据交换的标准,实现了不同系统间的高效协同。通过服务的松耦合和消息基础的交互,企业能够构建出灵活、可扩展的IT基础设施,以适应快速变化的业务...

    SOA with Web Services SOA with Web Services

    【标题】"SOA with Web Services SOA with Web Services" 【描述】"SOA with Web Services SOA with Web Services" 【标签】"SOA with Web Services" 在信息技术领域,Service-Oriented Architecture(SOA)是一...

    tuscany-das&sdo&distribution-all.zip

    标题中的“tuscany-das&sdo&distribution-all.zip”提到了三个关键概念:Tuscany Data Access Service (Tuscany DAS),Service Data Objects (SDO) 和 Distribution。这表明该压缩包可能包含了与这些技术相关的软件...

    《Understanding SOA with Web Services中文版》webservice.

    - **SOA框架下的Web服务**:在SOA框架中,Web服务不仅仅是一个简单的服务提供者,更是整个体系结构中的一个重要组成部分,通过标准化的接口实现服务间的通信和交互。 #### 五、关键技术融合与面向服务的企业 - **...

    SOA using Java Web services - Mark D. Hansen_110

    《SOA using Java Web services》这本书由Mark D. Hansen撰写,深入探讨了如何利用Java Web服务来实现这一目标。以下是对该书核心知识点的详细概述。 **1. SOA基础** SOA是一种设计原则,它提倡将应用程序的不同...

    SOA, Web Services

    - **WS (Web Services)**:Web 服务,是实现 SOA 的一种关键技术手段。 #### SOA 利益相关者 SOA 的实施涉及多个利益相关者,包括 CEO、CIO/CTO、架构师、开发者、项目经理和业务所有者等。每个角色都有其特定的...

    解读SOA :SOA实践方法论

    解读SOA Interpret SOA SOA越来越被企业接受,很多公司都准备规划SOA。但具体怎么上,没有一套很好的方法论是不行的。资料是IBM在长期的摸索中总结的一套SOMA方法论,由于是内部培训资料,所以比较难得。 内容 ...

    第5章Web Services与SOA_webservices_

    **第5章 Web Services与SOA** Web Services是一种基于互联网的、采用标准协议进行通信的软件服务,允许不同系统间的应用程序进行交互。这种交互能力使得分布式计算和数据共享成为可能,打破了传统系统的孤立性,...

    SOA 与Web Services 管理解决方案

    在探讨“SOA与Web Services管理解决方案”这一主题时,我们深入分析了服务导向架构(SOA)与Web服务管理的复杂性和重要性。SOA作为一种设计思想,旨在通过将应用程序的不同功能单元(称为服务)通过通信协议进行链接...

    soa.rar_SOA_java soa _web services in soa

    **"Understanding SOA with Web Services"这本书:** 该书由Addison Wesley出版,作者通过深入浅出的方式讲解了如何理解并实施SOA,特别是结合Web服务的实践。书中可能涵盖了以下内容: 1. **SOA基础概念**:介绍...

    Understanding SOA with Web Services.part1

    网上见到许多soa厂商大吹soa,看了许多资料也不知所云,本教程带你进入soa世界....

    Soa And Webservices.pdf

    #### 标题解析:《Soa And Webservices.pdf》 此文档标题表明了其主要内容聚焦于面向服务的架构(SOA)与Web服务。面向服务的架构是一种设计模式,它通过定义一组相互连接的服务来构建软件应用程序。这些服务可以跨...

    apache&-&cxf;-2.7.10

    Apache CXF 是一个开源的Java框架,主要用于构建和开发服务导向架构(Service-Oriented Architecture, SOA)和Web服务。这个"apache-cxf-2.7.10"版本是该框架的一个历史版本,发布于2013年。在这一版本中,Apache ...

    Understanding.SOA.with.Web.Services中文版(Eric Newcomer原著,徐涵译)2分之2

    ### SOA与多渠道服务:理解Eric Newcomer原著《Using SOA with Web Services》第五章节 #### 一、全新服务与合成服务的概念 在第五章“SOA与多渠道服务”中,Eric Newcomer深入探讨了面向服务架构(Service-...

    Java Web Services - Up and Running, 2nd Edition

    《Java Web Services - Up and Running, 2nd Edition》是一本专注于Java Web服务技术的书籍,作者Martin Kalin。本书适用于希望了解和掌握Java Web服务技术的读者,提供了构建、部署以及维护基于Java的Web服务的全面...

    apache&-&cxf;-2.5.9.zip

    Apache CXF 是一个开源的Java框架,用于构建和开发服务导向架构(Service-Oriented Architecture, SOA)和Web服务。这个"apache-cxf-2.5.9.zip"压缩包包含了Apache CXF 2.5.9版本的源代码、库文件和其他相关资源。在...

    webservices-wsdl详解

    Web服务描述语言(WSDL,Web Services Description Language)是一种XML格式,用于定义网络服务的接口。它是构建基于SOAP(Simple Object Access Protocol)的Web服务的关键技术之一,允许开发者明确地描述服务的...

    Soa And Web services

    ### Soa And Web services #### 重要知识点概览 本篇文档主要围绕服务导向架构(Service-Oriented Architecture,简称SOA)与Web服务展开,深入探讨了如何设计基于Web服务的服务导向架构,并通过实际案例进行了...

    webServices

    - SOA(Service-Oriented Architecture):Web Services是构建SOA的基础组件,允许构建松耦合、可重用的服务架构。 10. **源码解析**: - 在文中,博主可能分享了关于如何从源码层面理解和实现Web Services的示例...

    Oracle-Soa-Suite-Datasheet.pdf

    ### Oracle SOA Suite知识点概述 #### 一、Oracle SOA Suite简介 Oracle SOA Suite(Service-Oriented Architecture Suite)是一套全面且可热插拔的软件集合,用于构建、部署和服务导向架构(SOA)的管理。它支持...

Global site tag (gtag.js) - Google Analytics