Using XML Technologies To Build e Business Applications

Using XML Technologies To Build e. Business Applications Eric Schmidt & Zach Jason Web. Data Product Leads PSS/Developer Support Microsoft Corporation 9 -332


Nerd vs. Nerd

Goals l l l Clear understanding of XML Technologies and their relationship to Web Services Provide you with focused knowledge of XML technologies to help you build powerful e. Business applications Clear understanding of a real-world business scenario that uses many of Microsoft’s enabling Web Service technologies

Disclaimer l This is a broad session. Ø l l l We are going to cover a wide range of technologies. We are going to make assumptions in certain areas. We will establish a foundation before jumping head first into XML. Fasten your seatbelts!

Agenda l l l Take a pragmatic look at your development challenges Review current XML Technologies Define Web Services Review a tangible e. Business application that uses XML and implements Web Services Provide a roadmap for other XML sessions and other resources

Top Needs of Developers (building the business internet) l Multi-Platform & Loosely-Coupled Solutions Performance with Scalability Pluggable Services Standards Compliance l Security, Availability, Management l l l

Fundamental Development What is Data? Challenges l l l l Fetching from multiple • Relational Data data stores Applying business logic (routing) • File Systems Persistence Remoting or Marshalling • Messages Re-hydration • Internal Structures Validation Presentation • Schemaand or Binding meta-data Updating

Windows DNA Client Tier Application Logic Tier Application Services Data Tier Data Access and Storage Legacy Host Over 60% of horizontal and vertical marketplaces run on Windows DNA l Browser ASP/COM+ Application Rich Client SQL Server ØGoldman IIS/ASP, Sachs B 2 B COM+/MTS, MSMQ. Survey Devices – 11/99 Other Database ADO/OLE DB Data Access, Active Directory, XML, Commerce Internet (TCP/IP, HTTP, HTML, XML) …

“So what is your web strategy? ” l Pro’s Ø Ø l Great tools for UI Existing public network Con’s or Barriers to Success Ø Ø Ø Public business model – you are now loosely coupled Customers expect more Data is the primary mechanism of communication

e. Business “Speech” l Roll the tape

What Is e. Business? l l Q: If managing data is the problem – what technologies are available to help us? Generic marketing term… B 2 B, B 2 C, Data Brokers, Fulfillment, Transaction Management e. Business touches every vertical industry (Retail, Healthcare, Insurance, Legal, Financial, Manufacturing, etc. ) Moving, selling, validating and presenting DATA A: XML?

“Elevator” XML Nightmare l Roll the tape

XML Defined l l l XML or Extensible Markup Language is a meta-markup language that provides a format for describing structured data XML is the universal format for structured documents and data XML provides a standard for more precise declarations of content and more meaningful search results across loosely coupled applications

XML Defined (cont. ) l l XML 1. 0 Recommendation 2 -10 -1998 The rules (in 117 seconds): Ø Ø Ø Element Nesting Optional Closing Tags Single Tag Elements Double-quote Value Delimiters Case Sensitivity Well Formed

Element Nesting l HTML – Relaxed about nesting elements for example: Ø This text has <B>bold, <I>bold italic </B>and italic </I>words. l XML – Each element must Nest completely or not at all for example: Ø This text has <B> bold, <I>bold italic </I></B> <I>and italic </I>words.

Optional Closing Tags l l HTML is also relaxed when comes to closing tags. For example: Ø <LI>List One <LI>List Two <LI>List Three XML (Well-formed) syntax requires that closing element tags are used. For Example: Ø <MYLIST> <LISTITEM>List Item One </LISTITEM> <LISTITEM>List Item Two </LISTITEM> <LISTITEM>List Item Three </LISTITEM> </MYLIST>

Single Tag Elements l Some elements in HTML do not enclose content, and hence do not have a closing tag. For example: Ø l <HR> <HR SIZE=” 5”> XML does not have a single tag element concept. There must be a backslash character with the single element tag. For example: Ø <RULE /> <RULE SIZE=” 5” />

Double-Quote Value Delimiters l HTML allows attribute values to be used with or without double-quotes, as long as they don’t contain spaces. For example: Ø Ø l <HR SIZE=5> <H 1 ALIGN=CENTER>This is a Heading</H 1> In XML single or double quotes must always be used. For example: Ø Ø <HR SIZE=” 5”> <H 1 ALIGN=”CENTER”>This is a Heading</H 1>

Case Sensitivity l l XML is case sensitive unlike HTML. Here is an HTML file that would fail as a well-formed XML file: Ø <H 1 ALIGN=”CENTER”>This is a heading </h 1>

Well Formed Document l XML Declaration – helps other applications decipher the content of the document. The syntax looks like this: Ø l <? xml version=” 1. 0”? > Unique Root Element Ø <Person> <First. Name>Bill</First. Name> <Last. Name>Anderson</Last. Name> </Person>

XML Related Technologies (core) l l l XML Demo XML 1. 0 (Well Formed Document) XML DOM (Document Object Model) Schema (Validation) XPath (Query) XSLT (Transformation)

MSXML (Core XML Services) l MSXML is Microsoft’s Core XML Service Technology Ø Ø l Validating Parser (DTD & Schema) DOM XPath, XSLT Remoting via HTTPRequest www. msdn. microsoft. com/xml

Evolution To Web Services XML gy o l o /IP n P C h T Tec HTML Connectivity Presentation Inn FTP, E-m ova a tion il, Gopher Web P ages Browse the Web Programmability Web Serv ices Program the Web

Web Services - Defined l l Web Services are the intersection of connectivity, software and a business model Common, Public end-points to process data (platform, language, implementation neutral) Ability to program the web with a common integration point – XML Build on current languages, tools, operating systems, API’s

Web Services Web Service Seller Web Service BROKER Order Full-Fillment Web Service Publisher Content

Book. Broker And Tedz-Demo l l l Tedz’ Book Store is an online book seller specializing in hard to find technical books Book. Broker is an information and transaction broker for the publishing industry Tedz’ & Book. Broker “speak” XML via Web Services

Anatomy Of A Book Purchase Customers Book Sellers Book Broker Publishers Amazon Purchase Book Services Ted’z Books Barnes & Noble MSPress Catalog Pump Services Wrox Common Data Cache Sams

XML Based - Web Service Enabling Technologies l l l Biz. Talk Server 2000* Commerce Server 2000* SQL Server 2000* SOAP 1. 1* MSXML* * Build on XML Core Technologies (XML 1. 0, DOM, Schema, XPath & XSLT)

Who really manages your data? Customers Book Sellers Book Broker EDIFACT Amazon Purchase Book Services Ted’z Books Barnes & Noble HTTP Catalog Pump Services How do I define end Common Data Cache points? Publishers MSPress XML Wrox FTP Sams

Biz. Talk Server 2000 l l l Biz. Talk Server 2000 is a data and business process integration server designed to facilitate collaborative e -commerce business processes Integrate Trading Partners Provide services to: Ø Ø Orchestrate business processes that span applications, platforms and organizations Read, transform and securely route messages in loosely-coupled environments

Biz. Talk Framework l Biz. Talk Framework™, a set of guidelines for how to publish schemas in XML and how to use XML messages to easily integrate software programs together in order to build rich new solutions

Biz. Talk. org v v First open web schema library Tools to register schemas and track use 400+ 3 rd party XML schemas 150+ registered organizations Biz. Talk. Org Steering Committee American Petroleum Institute Intellysis Ariba I 2 Baan JD Edwards BP/Amoco Merrill Lynch Boeing Microsoft Clarus Open Applications Group Commerce. One Pivotal Compaq Rosetta. Net Concur SAP Dell Siebel Systems DISA UPS

Biz. Talk Server 2000 - Applied Customers Book Sellers Amazon Book Broker Define an end-point as a Web Service. Purchase Book Services Ted’z Books Transform or Map To Book. Broker Barnes & Schema Noble Publishers XML – not expected MSPress structure Catalog Pump Services Wrox Common Data Cache Sams

Demo – Biz. Talk & Book. Broker l Demo

Commerce Server 2000 l Features Ø Ø Ø l l User Profile System Content Targeting System Product Catalog Transaction Pipelines Data Warehousing & Analysis Close integration with Biz. Talk Server XML Aware (internal & external)

SQL Server 2000 XML Services l Features Ø Ø l HTTP access via URL to XML data DEMO Direct access to XML data via ADO or OLEDB (MDAC 2. 6) Benefits Ø Ø Web Applications have direct access to XML data Business-to-business scenarios are more efficient due to common XML format

SQL Server 2000 XML Features - Applied Customers Book Sellers Book Broker Publishers Querying the data store for native XML. Amazon Purchase Book Services Ted’z Books Barnes & Noble MSPress Catalog Pump Services Wrox Common Data Cache Sams

SQL Server 2000 XML Services l APPLIED TO SCENARIO

What is SOAP? l l l Simple Object Access Protocol SOAP provides a simple and lightweight mechanism (protocol) for exchanging structured and typed information between peers in a decentralized, distributed environment Flexible/Extensible SOAP is Protocol Well formed XML – DEMO

SOAP (cont. ) l SOAP 1. 1 Specification SOAP was submitted to W 3 C (5/8/2000) l SOAP Toolkit for Visual Studio 6 l

SOAP Applied Customers Book Sellers Amazon SOAP Toolkit to Create SOAP Requests Ted’z Books Barnes & Noble Web. Broker Service Book Listening for SOAP Requests Purchase Book Services Publishers MSPress Catalog Pump Services Wrox Common Data Cache Sams

Demo – SOAP and SOAP Toolkit l APPLIED TO SCENARIO

Demo - MSXML Applied (XSLT) Customers Book Sellers Book Broker Formatting data (XML) for customer presentation. Publishers Amazon Purchase Book Services Ted’z Books Barnes & Noble MSPress Catalog Pump Services Wrox Common Data Cache Sams

Evolution of Programming the Web gy o l no top k h s e c D Te Usability Inn Great Use ova r Exp erien tion ce DNA Enterprise Busin ess L M X + 0 0 0 2 A N D Internet e. Bus iness Web + Serv ices Program the Web

Web Services Integration & Interoperability Data (XML) Tools Windows DNA 2000 & Web Services = Comprehensive Platform

Call To Action l l l Challenge the way you look at data in your applications and apply XML technologies & Web Services Learn and then attack B 2 B and B 2 C challenges with XML Seek out the resources and sessions that appeal to your needs – this week is a great opportunity

Summary l XML Ø Ø l l Is integral to the vision for building next-generation Web Service based applications Is a key technology in Microsoft’s Windows DNA 2000 platform Is Data Understand that XML is not a panacea for today’s development challenges Microsoft supports XML standards Microsoft is integrating XML support into its product and technology offerings

XML Sessions Roadmap l l l l l MSXML In-depth Features (9 -326) Using XSLT to Transform XML (9 -333) SQL Server 2000 XML Enhancements (5 -324) Advanced XML Processing in SQL Server 2000 (5 -330) SOAP Toolkit (9 -331 W) Using MSXML (XML Core Services) with Visual Studio (6 -310 W) COM+ and CORBA Interop with XML-based Web Services (1 -303) Biz. Talk Track Commerce Server Track

XML Resources at Tech Ed l XML Services on Windows Booth Ø Booth (#23) in the Microsoft Product Pavilion § Demos (MSXML, SOAP, SQL) & Ask Questions § Free Training CD’s

“Microsoft is the most influential company driving the deployment of XML. ” Source: Zona Enterprise Usage Survey, Application Development - Q 4 1999 “…recognize the great power that the world will derive over the next five or ten years from XML” Source: Steve Ballmer, Financial Services Summit 4/2000

Questions? l If we run out of time please come to the booth!!!!

- Slides: 53