Download presentation
Presentation is loading. Please wait.
Published byHugh Beasley Modified over 9 years ago
1
XML and Web Services November 21, 2005 Leo Putra Mardjuki Christopher William Lee Corey Fung Chan
2
Who Invented XML? Jon Bosak (left) “The father of XML" Sun Microsystems. Organized the W3C XML activity in 1996 Chaired the W3C XML Working Group
3
What is XML used for? Designed to meet the challenges of large- scale electronic publishing and data exchange Important in the exchange of data across the web. sales data inventory data
4
What is XML? Biggest break through in the last decade. XML is eXtensible Markup Language Not a fixed format like HTML XML is a ‘meta language’ for describing data It allows you to define your own language and applications Establishes rules about formatting and marking up a document Must provide some schema in order for an application to “understand” the document.
5
XML example <!DOCTYPE OSU[ ]> 123456789 Business Don Won Demarko
6
What is Schema? A schema is a conceptual framework that describes the underlying structure of your collection of elements. Define the “vocabularies” of element types and attributes for a given class of documents and allows you to share those documents with other applications. Play a role in information retrieval. These schemas can be formally defined as DTDs.
7
What is DTD? Document Type Declaration Defines the legal building blocks of an XML document. Defines the document structure with a list of legal elements.
8
External DTD XML 123456789 Business Don Won Demarko DTD <!DOCTYPE OSU[ ]>
9
Internal DTD <!DOCTYPE OSU[ ]> 123456789 Business Don Won Demarko
10
XML Parser Database Program HTTP- Server Apache HTTP – Client Browser Client OS Server HTTP – Client Browser OS Client DTD OSI Internet XMLHTTP/XML Open XML Read DTD Loc. Req. DTD Reads DTD Reads Doc Web Service
11
Advantages Simple (like HTML) Open standard (W3C standard) Endorsed by software industry market leader Extensible (no fix set of tags) Separation of content and presentation Support of Multilingual documents and Unicode Allowing multiple data types Rapid adoption by industry
12
Disadvantages XML can make very large database unwieldy to maintain Lack of integrated security It is a verbose language therefore the documents require: More disc space to save data More RAM to hold data More bandwidth to carry data More processing power to parse, transform, and extract information from XML files
13
Prospects of XML XML should be straightforwardly usable over the Internet It shall be easy to write programs that process XML documents XML documents should be human-legible and reasonably clear XML standard should be prepared quickly The design of XML should be formal and concise XML documents shall be easy to create Terseness in XML markup is of minimal importance
14
Examples of XML Applications Exchanging data (within databases or computer systems) among incompatible system Business-to-Business (B2B) applications – product, sales, financial information exchange over the Internet Storing and sharing plain text data Creating new XML-based languages (XHTML, MathML, XBRL, etc)
15
Web Services UDDI, WSDL, SOAP
16
Introduction to Web Services “..a new breed of web application” –xml.com “provides simplicity” XML is a web service standard, communicates through different languages Integrated into Microsoft.Net platform (2000)
17
Elements of Web Services SOAP (remote invocation) RPC messages UDDI (trader, directory service) WSDL (expression of service characteristics) XML+HTTP XML+SOAP, UDDI, WSDL Those elements are all incorporated with XML
18
What Web Services Offer Component services that people use to build bigger services They are modular applications that can be published, located, and invoked across the web Once a web service is launched, other applications can discover and invoke the process
19
SOAP Simple Object Access Protocol SOAP is a lightweight protocol for exchange of information in a decentralized, distributed environment Sends messages through protocol and receives on the other end Calls object by making Remote Procedure Call (RPC) (Synchronous request/response message passing) XML based
20
WSDL Web Services Description Language WSDL describes what a web service can do, where it resides, hot to invoke it A WSDL definition contains all of the information necessary to invoke a web service A definition is just an XML document (WSDL schema) Developers can use the WSDL definition to generate code to act with the web service it describes
21
UDDI Universal Description, Discovery, and Integration It is a SOAP based web service for locating web services and programmable resources on a network provides developers and administrators to share information about internal services across businesses on the Internet
22
Bibliography Jake Sturm. Developing XML Solution. Microsoft Press, WA, 2000. Sean McGrath. XML: Processing with Python. Prentice Hall, NJ, 2000. Michael Floyd. Building Web Sites with XML. Prentice Hall, NJ, 2000. www.xml.com www.xml.org www.zapthink.com http://msdn.microsoft.com/webservices/webservices/understanding/ specs/default.aspx http://msdn.microsoft.com/webservices/webservices/understanding/ specs/default.aspx http://www.etcs.ipfw.edu/~lin/CECourses/XML_EAI/3_XML_Fndame ntal.html http://www.etcs.ipfw.edu/~lin/CECourses/XML_EAI/3_XML_Fndame ntal.html
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.