Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution...

40
Web Services The driver of the B2B Revolution Barcelona, February 2002

Transcript of Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution...

Page 1: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Web ServicesThe driver of the B2B RevolutionBarcelona, February 2002

Page 2: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Contents� Intro� What are Web Services?� A Business Case� Exercise 1: Parts

Specification� Wrapup: XML� Communication Protocols� Exercise 2: Protocol

Specification� Wrapup: SOAP� The Future

Internet

SOAP

DTDs

Biz Objects

Biz Processes

Strategy

Page 3: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Intro

� Please introduce yourself!� Scope: Tech stuff for Biz guys� Dehyping: What is this really good for?

Page 4: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

What are Web Services?

� What do you think?

Page 5: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

What are Web Services?

Providers OEMs Distrib. Clients

A Typical Industry Value Chain

12345

Page 6: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

What are Web Services?

� B2C Commerce or Wireless� Distribution Chain Services� Intra-company distributed systems

services� Supplier Network Services� Services amongst suppliers

Page 7: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

What are Web ServicesReally?

� A convention how to call businessobjects (XML DTDs)

� A convention for computers to talk toeach other on the network level (SOAPand HTTP)

� Let‘s see the business case

Page 8: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Business Case:Hard to Find Auto Parts

Page 9: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Mission

Provide customerswith highly specializedauto parts in a timelymanner and at a fairprice.

Page 10: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Business Challenge

Car Dealers

Auto Parts

Clients

Find parts quicklyand at the best pricein the providernetwork

Page 11: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Technology

Use XML web servicesto build an integratedsuppliers network.

Page 12: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Tech Solution

Each provider publisheshis stock and priceinformation using aweb service, and wewould be able toprovide our customerswith the parts from thecloses source or for theleast amount of money.

Page 13: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Business Alignment

Internet

SOAP

DTDs

Biz Objects

Biz Processes

Strategy

Business A

Internet

SOAP

DTDs

Biz Objects

Biz Processes

Strategy

Business B

Does this makebusiness sense?

Do the processesfit together?

Are we talking thesame things?

Do we use thesame language?

Do we use thesame tools?

Infrastructure/Security Standards

Page 14: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

What are the Issues?

� Common business processes and namingschemes

� System Integration at the provider� Internet Access: Each of the providers has to

connect his systems to the Internet� Security: How to protect the provider data

from competitors and hackers?� Protocol: Definition a common communication

protocol with all providers

Rosetta NetPIP

ODBC Access,MQSeries, ...

Security Audit,Firewalls, ...

Next Slides

Page 15: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Exercise 1:Parts Specifications

� Write a sample XMLdescription for the parts inthe „Hard to Find AutoParts“ business

� What are the necessaryfields?

� How are these fieldsstructured?

� Are there cultural/businessprocess difference in thedescription?

Page 16: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

<Pause>

Page 17: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

<Pause> ... </Pause>

Page 18: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Exercise 1: Solution

<part> <oem>Ford</oem> <partId>1758393685</partId></part>

� partId is taken from OEM spare part catalog� OEM name is taken from a list� No part attributes necessary� No model year necessary because part

<->model relationship is handled by the OEMs

Page 19: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Wrapup:XML Communication

Page 20: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Why not HTML?

�HTML is understood bymost browsers today.

Page 21: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Rendering HTML

�HTML defines theaparence of data, but nottheir „semantics“(=meaning)

Page 22: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Sample XML

�With XML, you canunderstand the meaningof the tags.

�More importantly, acomputer can understandthem as well.

Page 23: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Rendering XML

�XML from the previousexample might berendered like this.

�Notice that even thoughthe tags are different,they can still be renderedjust like HTML.

�There are several optionsto render XML (CSSs andXSLTs)

Page 24: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

XML B2B Communication

�Computers can exchangeXML data automatically

�B2B communication needsno rendering

Car Dealers

Auto Parts

Clients

Page 25: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

SOAP

Page 26: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Communication Protocols

� The format of the data tointerchange (messages)

� The meaning of themessages (semantics)

� Information about theorder of messages

A specification of how twoor more computers cantalk to each other,including:

Page 27: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Message Data Formats

� One option is to use XML toformat messages and theirdata.

� Previous generations (EDI)used fixed-length fields forthe data with typeinformation outside themessage.

Page 28: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Interaction Diagram

Soap ERP

Car DealerAuto PartsClient

SOAP

Page 29: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Exercise 2:Protocol Specification

� Define the communicationprotocol between AutoParts and its partners.

� What type of „questions“could be exchangedbetween Auto Parts and itsproviders?

Page 30: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

<Pause>

Page 31: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

<Pause> ... </Pause>

Page 32: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Exercise 2:Sample Solution

� isAvailable(Part) ->� available(Part,Price) (Price=0 => reject)

� orderPart(Part) ->� confirm(Order) (ID=0 => reject)

� getOrderStatus(OrderID) ->� stock/inProcess/sent/unknown

� Invoice(OrderId) <-� confirm(Invoice) (ID=0 => reject)

� getInvoideStatus(InvoideID) <-� accept/inProcess/payed/unknown

Page 33: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Wrapup:SOAP Communication

Page 34: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

HTTP Request

SOAP Envelope

SOAP Body

SOAP Request

Arguments

A SOAP Request

Auto Part ID

HTTP

XML

Max Price

Page 35: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

isAvailable Soap RequestPOST /isAvailable-request HTTP/1.1

Host: xml.hfap.comContent-Type: text/plain; charset="utf-8"

<SOAP-ENV:Envelope

xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/

>

<SOAP-ENV:Body><c:isAvailable xmlns:c=http://xml.hfap.com/providers>

<c:part>

<c:oem>Ford</c:oem> <c:partId>1758393685</c:partId>

</c:part>

</c:isAvailable>

</SOAP-ENV:Body></SOAP-ENV:Envelope>

Page 36: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

isAvailableResponseHTTP/1.1 200 OK

Server: PythonSimpleHTTP/2.0Content-type: text/xml; charset="utf-8"

<SOAP-ENV:Envelope

xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/

>

<SOAP-ENV:Body> <c:isAvailableResponse xmlns:c=http://xml.hfap.com/providers >

<c:part>

<c:oem>Ford</c:oem> <c:partId>1758393685</c:partId>

</c:part>

<c:price>$20.58</price>

</c:isAvailableResponse></SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Page 37: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

The Future

Page 38: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

A Wonderful New World?

Providers OEMs Distrib. Clients

Page 39: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Conclusions

� What are Web Services?� What are Web Services not?� What are they good for?� Who are the

winners/loosers?

Page 40: Web Services Services 020212... · 2002. 12. 28. · Web Services The driver of the B2B Revolution Barcelona, February 2002

Tools

� Microsoft .Net� They originated the hype

� IBM/Apache XML Toolkit� The winners?

� Sun ONE� Currently Vaporware

� Perl SOAP::Lite� The prototyping tool?

� Everybody is going to provide XML toolkits