Download presentation
Presentation is loading. Please wait.
Published byIsaac Ross Modified over 9 years ago
1
Another PillowTalk Presentation 2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Introduction to XML for SOA Lee H. Burstein, President 2525 Justin Lane Wilmington, DE 19810-2223 302-477-0180
2
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 1 Topics Introduction Where used Structure What is neeeded Short comings How can we use it
3
Another PillowTalk Presentation 2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Introduction
4
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 3 Introduction It’s really eXtensible Markup Language A set of standards defining a toolkit for describing data HTML describes how information is displayed Both use tags XML tags tend to be user defined, must be balanced and is highly structured Need a Schema or DTD
5
Another PillowTalk Presentation 2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Where Used
6
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 5 Where Used? US Government IRS DOD SEC Compliment/replacement for EDI Healthcare, banks, retail, wholesale RPC SOAP Web services SOA Represent multivalue data in a relational database
7
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 6 For Example XBRL eXtensible Business Reporting Language Standard tags for financial reporting Period, Current Assets, Balance Sheet, etc. www.serence.com, download Klipfolio www.serence.com Uses XML to define properties FusionWare XML Server Uses XML to combine data from dissimilar data sources into one web presentation Oracle, DB2, SQL Server have XML data types
8
Another PillowTalk Presentation 2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Structure
9
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 8 Structure Text document containing balanced, nested tags starting with an XML declaration Tags denote fields and are self describing Tags can have attributes
10
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 9 Processing Tag Structure Special tag containing Processing instructions. Begins with <? Ends with ?>
11
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 10 Data Tag Structure data Opening tag Element Closing tag
12
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 11 Data Tag Structure data1 data2 Attribute
13
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 12 XML Declaration Tag This identifies the document as XML conforming to version 1.0 specification Using character encoding for Latin-1
14
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 13 XML Data Lee Burstein 3024770180 3025551212 Multivalue Data Comment
15
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 14 Namespaces Namespaces can be defined to prevent tag naming conflicts A tag associated with a namespace helps guarantee its uniqueness
16
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 15 Namespaces Lee Sam
17
Another PillowTalk Presentation 2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com What Is Needed
18
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 17 What is needed? XML describes data only No display information What is displayed How is it displayed No validation
19
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 18 DTD Document Type Definition This is the old way of describing and validating XML Cannot support data types or complex relationships The DTD is referenced in the XML document An error is generated if your XML does not conform to your DTD
20
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 19 XML Schema W3C recommendation DTD alternative written in XML Validates XML Supports data types Can define data patterns, ranges, defaults More powerful, understandable and flexible that DTDs Stored in an XSD file
21
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 20 XSD Schema
22
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 21 XSL eXtensible Stylesheet Language Stylesheet language (like CSS) for XML You will use a combination of Xpath, XSLT and XSL-FO to Select the part of the XML document to display Transform it Format it
23
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 22 Xpath Query language for extracting elements from an XML document Result is dependant upon where you are in the XML document The same syntax could return different results
24
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 23 XSLT eXtensible Stylesheet Language for Transformation Select the value of one node Select the values of all nodes of the same name Conditionally select value Sort results
25
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 24 XSL-FO XSL Formatting Objects Defines page layout, regions of a page Output can be a variety of formats PDF RTF TXT PostScript
26
Another PillowTalk Presentation 2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Short Comings
27
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 26 Short comings Remember, this is a standard that continues to evolve Requires bandwidth Heavyweight protocol There is a lot to put together
28
Another PillowTalk Presentation 2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com How Can We Use It
29
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 28 How can we use it? Quite easy to write a program to export data in a proper XML structure Most, if not all, databases have tools to read and write XML data using a XSL or DTD Relational data bases now have XML data type SOAP Web Services SOA
30
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 29 SOAP Simple Object Access Protocol XML based Can be used for Messaging systems RPC Distributed processing Structure is quite specific Cannot use DTD’s
31
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 30 Web Services Uses SOAP, XML (Web Service Description Language), HTTP An object’s methods are publicly exposed You can use them in your applications You can expose portions of you application to the world
32
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 31 SOA Service Oriented Architecture Collection of services that communicate with each other Services are loosely coupled From different applications On different servers Using different databases Using XML and Web Services to communicate
33
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 32 Can I Do This? Sure! All multivalue applications can be accessed via.net All multivalue applications can be accessed via java All multivalue applications can be accessed via XML You may need to separate screen I/O from business logic
34
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 33 Why Would I Want To? You control what discrete portions of your application are available via SOA Improve customer and vendor communication and access to information Horizontal parts of your application can be generally available increasing your exposure Provide On-Demand access to your application
35
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 34 Resources www.w3schools.com www.w3schools.com msdn.microsoft.com/xml www.xml.com www.xml.com www.xmethods.net www.w3.org www.w3.org www.develop.com/xml www.develop.com/xml www.xbrl.org www.xbrl.org http://webservices.xml.com/pub/a/ws/2003/09/30/soa.html http://webservices.xml.com/pub/a/ws/2003/09/30/soa.html http://www.service-architecture.com/
36
2004 Dynamic Systems, Inc. Lburst@dynamicsys.com http://www.dynamicsys.com Page 35
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.