Practical Steps in Implementing B2B E-Commerce Solutions with XML
1. IVIS Group – Mission Critical XML
Consulting, Technology and Training – based in London
Member of W3C and sponsor member of OASIS
Using technology to solve business problems
Deliver solutions focusing on:
-
Scalability, Performance and Resilience
Projects
-
Tesco.com the Largest on-line grocery system in the world ($10 million a week, 2300 orders per hour. 1 million customer base
-
Tesco National Store XML based architecture. Books, Entertainment, Wine, Gifts
2. Scope
The presentation is based on a real-life project
The focus is on bespoke solutions with XML as the protocol used to connect business partners
3. What are we going to cover?
-
Introduction to XML in B2B applications
-
Today’s B2B market
-
Tomorrow’s B2B market
-
Building B2B applications
4. Evolution
5. EDI
Electronic Data Interchange (EDI) started B2B systems over a decade ago
Minimum penetration
Suffers from the following problems:
-
Complex to implement
-
Complex to extend
-
Expensive to set-up and maintain
6. What is needed for data exchange?
Open data structure
Standard data format
Extensible definition
Standard programming interface
Simple to use, maintain and expand
In a word, or rather TLA, XML
7. What are we going to cover?
-
Introduction to XML in B2B applications
-
Today’s B2B market
-
Tomorrow’s B2B market
-
Building B2B applications
8. B2B market today
Schema repositories
-
OASIS
-
BizTalk
Major players
-
CommerceOne
-
Ariba
Standards and protocols
-
ebXML
-
RosettaNet
9. OASIS
Organization for the Advancement of Structured Information Standards
Non-profit international consortium
Hosts XML.org www.xml.org
-
Central repository for XML schemas
10. BixTalk
Microsoft initiative
Two types of schemas are stored: XDR schemas and XSD Schemas.
Gradually moving toward XSD
-
MSXML4 support of XSD
BizTalk also refers to a Microsoft product BizTalk Server
11. ebXML
United Nations (UN/CEFACT) and OASIS initiative
Set of specifications to enable a modular electronic business framework
Uses XML, HTTP and UML in the specifications
12. RosettaNet
Information Technology, Electronic Components and Semiconductor Manufacturing industries
Plan to expand to include other adjacent industries, such as retail automotive, consumer electronics and telecommunications
Provides schemas and guidelines to business partners to align services
13. What are we going to cover?
-
Introduction to XML in B2B applications
-
Today'sB2B market
-
Tomorrow's B2B market
-
Building B2B applications
14. B2B market tomorrow
Web Services
-
UDDI
-
SOAP - XML Protocol
-
WSDL
15. Web Services – the fourth revolution
16. Web Services – New Generation of Applications
New model for creating dynamic distributed applications
Common interfaces for communication across the Internet
17. Emergence of Service Oriented Architecture (SOA)
Today most business applications are based on a tightly-coupled design
The main drawback is any change in any of the subsystems has expensive implications
The idea of SOA is not new
-
HP's e-Speak was heavily marketed in 1999 but failed due to its proprietary nature
18. SOA
19. Service Requestor (SR)
For a company to play this role there must be one or more companies who provide services in line with the SR
-
E.g. Content aggregators such as data portals
-
Or Service aggregator such as a business entity that interact with a number of other companies
-
Service requestors connect to Service Brokers to find a suitable Service Provider
-
Once a Service Provider is found, the SR binds to it
20. Service Provider (SP)
For a company to be an SP it needs to:
-
Provide an autonomous service
-
Exposes an API for the service
These services could be either:
-
Software based
-
Business based
21. Service Broker (SB)
Registry - White Pages
-
Collect data about other businesses
Broker - Yellow Pages
-
Builds on the registry
-
Extends the value by intelligent searching and categorisation
Aggregator / Gateway - Green Pages
-
Builds on the Broker capabilities
-
Describes actual policy and business processes
22. Web Services
Programmable application logic accessible using standard Internet protocols
-
Hypertext Transfer Protocol (HTTP) and Extensible Mark-up Language (XML).
Combines the best aspects of component-based development and the Web
-
Black-box functionality
Accessed by messages, not object-model-specific protocols, such as DCOM, RMI, or IIOP
23. Requirements for service-based development
A standard way to represent data
-
XML
A common, extensible, message format
-
SOAP
A method to describe services
-
WSDL
A way to discover services
-
UDDI
24. SOAP - The Simple Object Access Protocol (SOAP)
Lightweight protocol for information exchange
Defines a set of rules to represent data
Defines an extensible message format for representing remote procedure calls RPC over HTTP
W3C working draft
25. WSDL
WSDL Web Services Description Language
XML format for describing network services
Describes operational information such as the interfaces needed for communication
Describes what a web service can do, where it resides, and how to invoke it
Formulated by Microsoft, IBM and Ariba and is currently being considered by the W3C
XML-based contract language
26. UDDI
The Universal Description, Discovery and Integration Project (UDDI)
Standard registry for companies
Focused particularly on middleware connectivity
Uses XML to 'describe' the systems that companies use to interface with one another
The registry went live on May 2nd 2001 with HP taking responsibility (from Ariba) to run the registry
27. What are we going to cover?
-
Introduction to XML in B2B applications
-
Today's B2B market
-
Tomorrow's B2B market
-
Building B2B applications
28. Building B2B applications
The direction is set but many of the standards are not finalised
Applications can still be built today
The key factors in the design are:
-
Component-based design
-
Interface-based architecture
-
XML in the the Data-tier, the Business-tier, and the Presentation-tier
29. Building B2B applications
The following architecture is based on the IVIS e-framework used at Tesco.com
Nine virtual stores launched between October 1999 and May 2001
-
Books, Entertainment, Wine, Gifts, Electrical, Mother & Baby, Flowers, Home Living and Fashion
30. The Challenge
Tesco,the largest on-line grocery retailer in the world, wanted to expand to non-food market with the following objectives:
-
Diversify product range
-
Personalise offering
-
Maintain customer management
-
Roll out 'many' virtual stores
-
Expansion must not disrupt current systems
-
Time to market is crucial
31. The architecture
32. Advantages of the architecture
Business partners do what they do best
Each business partner treats the others as black-boxes
-
Don't know how they implement their functionality
-
Don't care about the internal functionality
Interactions between business partners based on an agreed schema
-
Binding contract
-
Interface programming
33. The retailer
Maintain brand
Customer interaction
Payment processing
Central hub for the communication with the business partners
34. The data provider
Provide data
Presents catalogues of data in various views
Provides a run-time service to the retailer
Receives the request for the data in XML
Responds with the data in XML
35. The order fulfiller
Dispatches orders
Receives purchase order requests in XML
Sends order status updates to retailer in XML
Sends stock information to data provider
Sends sales history to data provider for ranking
36. XML design stages
37. XML design stages
Modelling
-
DTDs
-
Schemas
Processing
-
DOM
-
XSL
Presentation
-
XSL
38. Document Type Definition DTDs
The only standard until recently to model and validate XML documents
Based on Standard Generalized Markup Language (SGML)
Well established but .. Text based technology
-
No data typing
-
Written in SGML not XML (Not extensible)
39. DTD
40. XML Schemas
W3C recommendation 2nd May 2001
Everything DTDs can do and more
-
Data typing
-
Written in XML
-
User defined data types
Used for
-
Modelling
-
Validation
41. XML Schema
42. The modelling stage
Objectives
-
Agree on vocabulary
The basis upon which the system is built
All business partners need to understand and agree the rules
Ownership is crucial
By viewing the schema we can identify all the business interactions between the business partners
43. Traps to watch out for during modelling
Schemas vs. XML documents
-
An XML document represents a snapshot
-
An XML Schema captures all the rules
Try to use a standard vocabulary
Build with extensibility in mind
Distinguish between validation and modelling
44. The processing stage
Initiates and handles online communication
Requests for data from the data provider
Sends purchase orders to the fulfillers and receives confirmation
Requests and results are sent and received in XML over HTTP
-
Once the connection is made with the business partner it is left open until the result is received
Document Object Model (DOM) processing is mainly used
This is similar to SOAP in principle
45. State management
46. Data carrier
47. Traps to watch out for during processing
Attributes order is not enforced
Don't assume anything!
-
Business partners not familiar with XML could send you badly-formed XML
-
Always validate results
-
No need to validate requests
48. Traps to watch out for during processing ..
Manual parsing is painful
Passing objects across process boundary is expensive
Use Simple API for XML (SAX) for large documents
49. Presentation stage
An Internet-based application needs to transform XML to HTML on the server
This is mainly an XSL exercise
The first stage in building the XSL is to obtain an HTML skeleton from a graphic design agency
-
Needs to be well-formed
50. Caching
With flexible architectures there are dangers with performance degradation
Caching minimises performance degradation
Cache HTML results
-
Analyse the volatility of the data first
-
Flush the cache regularly
51. Traps to watch out for during presentation
The user interface must not dictate the design!
Educate graphic designers in well-formed HTML
-
Basis for XSL
Maximise the use of CSS
-
XML-to-XSL
-
XSL-to-CS
-
Reduce contention between IT and designers
Evaluate the options for XML transformation
52. Team Communication
There are many players in such a system
-
Retailer commercials, Marketing, Business partners, IT, graphic designers, etc
-
Need a common language to communicate (Unified Modelling Language)
-
Don't underestimate the role of coordination between the above players
53. Tools
DTDs editors: Near and Far
General XML, Schemas editors: XMLSpy
Schemas editor: XML Authority
XSL editor: eXcelon Stylus
Parsers:
-
Microsoft MSXML NT
-
IBM XML4J, Apache Xerces
XSL Processors
-
Microsoft MSXML NT
-
Apache Xalan
54. Repositories
RDMBS
-
Oracle
-
SQL Server
-
DB2
OODBMS
-
eXcelon
Native XML
-
Tamino
55. Summary
In this presentation we
-
Introduced the role of XML in B2B applications
-
Reviewed the state of the market today
-
Outlined some of the current industry trends
-
Outlined the steps in building B2B applications
-
Outlined some traps to be aware of
56. Questions?
Patrick.Haggerty@ivisgroup.com

