37
สสสสสสสส Power Point สสส สส. สส. สสสสส สสสสสส

Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Embed Size (px)

DESCRIPTION

Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส. สนับสนุน Power Point โดย ผศ. ดร. สมนึก คีรีโต. Topics. Web Services How Web Services work? Benefit of Web Services to B2B, G2G and G2B e-Commerce Application-to-Application (A2A) Integration - PowerPoint PPT Presentation

Citation preview

Page 1: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

สนั�บสนั�นั Power Point โดย ผศ . ดร . สมนั�ก คี�ร�โต

Page 2: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Web Services How Web Services work? Benefit of Web Services to B2B, G2G and

G2B e-Commerce◦ Application-to-Application (A2A) Integration

Direction and trend of Web Services

Page 3: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Interoperability: ability to work among sysytems Different communication protocolsDifferent platforms

Operating SystemsDifferent programming languages Non-automated coordination

Page 4: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Technology drive from Distributed Processing • RPC (Remote Procedure Call) • RMI (Remote Method Invocation)• DCOM (Distributed Component Object Model)• CORBA (Common Object Request Broker Architecture)• J2EE (Java 2 Platform, Enterprise Edition)• Difficulty in using and protocol

• Popularity of Internet/WWW

Drive from adoption of XML standard

Page 5: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส
Page 6: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

ยุ�คที่�� 1 Static Web: HTML publish, request & response HTML files

ยุ�คที่�� 2 Dynamic Web: HTML + Database

ยุ�คที่�� 3 Web Services: A2Apublish, request & responseservices (sw components)

Page 7: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Next generation of “Web applications”

Standard to provide ability to publish “services” or “Software components” and other web applications such that SW Components can discover other SW components and conduct business transactions.

Application-to-Application Interoperability Application-to-Application Interoperability (through the webs)

Page 8: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Example of a scenario with full Interoperability (not yet exist)

When “Bob” wants to make an appointment with a doctor through web, the system checks the doctor’s and Bob’s available times and then schedules both the doctor’s and Bob’s calendars.

On the appointment day, the doctor wants to postpone the appointment to later time, the new appointment time will be automatically send to Bob’s mobile phone

Before meeting with the doctor, the system will connect to Bob’s health insurance company to check the Bob’s coverage contract.

When the doctor prescribes medicines for Bob, the system will automatically send information to the drug store for processing and update stock

Page 9: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Web ServerSingle Point of Services

Web Server

Web Server

Legacy Systems

Application Server

Database Server

อิ�นัเทอิร�เนั�ต

ผ��ใช้� ใช้�บราวเซอิร�และเข้�าส�$บร�การจากเว�ปไซต�เด�ยว หร)อิOne Stop Service

แต$ได�ร�บบร�การมาจากหลายท�*

Application Server

Database Server

Page 10: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

การเช้)*อิมโยงระบบสารสนัเทศภายในัอิงคี�กรEnterprise Application Integration (EAI)

การเช้)*อิมโยงระบบสารสนัเทศท�*ม�คีวามหลากหลายภายในัอิงคี�กร ระบบร�ฐบาลอิ�เล�กทรอินั�กส� e-Government

ระบบการให�บร�การประช้าช้นัจากจ�ดเด�ยว e-Citizen (G2G2C) ระบบการจ�ดซ).อิจ�ดจ�างทางอิ�เล�กทรอินั�กส� (G2B e-

Procurement) ระบบธุ�รก�จผ$านัส)*อิอิ�เล�กทรอินั�กส� e-Business

การเช้)*อิมโยงระบบสารสนัเทศข้อิงบร�ษั�ทผ��ซ).อิ ก�บ บร�ษั�ทผ��ข้าย B2B e-Marketplace e-Supply Chain Management

Page 11: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Data Interoperability + Process Interoperability

ข้�ดคีวามสามารถในัการท2างานัข้�ามระบบได� โดยใช้�มาตรฐานักลางทางเทคีนั�คีท�*ท2าให�เก�ดการแลกเปล�*ยนั ข้�อิม�ล และ เร�ยกใช้�งานั โปรแกรม ข้�ามระบบท�*ม�คีวามแตกต$างก�นัท�.ง ฮาร�ดแวร� และ ซอิฟต�แวร�

Page 12: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

For data interoperability: XML For process interoperability: SOAP For services publication & discovery: UDDI Web services description language: WSDL Web Services Flow Language: WSFL

e-Business XML/Next Generation EDI: ebXMLebXML

Page 13: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส
Page 14: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Markup Language Markup Language ท�*ผ��ใช้�สามารถก2าหนัด tagstags ท�*ใช้$ส)*อิคีวามหมายข้อิงเนั).อิหา และ ก2าหนัดโคีรงสร�างข้อิงเอิกสาร

ข้�อิม�ลท�*ม�โคีรงสร�างนั�.จะถ�กนั2าไปประมวลผลต$อิอิย$างอิ�ตโนัม�ต�ได�ง$าย

Page 15: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

ระบบสารสนัเทศข้อิง บร�ษั�ทผ��ซ).อิ

ต�อิงการเช้)*อิมโยงก�บระบบสารสนัเทศข้อิง บร�ษั�ทผ��ข้ายเช้$นั ระบบข้�อิม�ลสต�อิก

Page 16: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Simple Object Access Protocol A Distributed Objects technology standard Send data via Internet/Web in form of XML Easy to use with Request/Response HTTP

Protocol

Page 17: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

SOAPSOAP – an XML-based protocol for calling program in HTTP/Web Server

Remote Procedure Call via Web

program (Software Components) calling across systems

Web Consortium (W3C) Support

Page 18: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส
Page 19: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

POST /Order HTTP/1.1 Host: www.northwindtraders.com Content-Type: text/xml Content-Length: nnnnSOAPAction: "urn:northwindtraders.com:PO#UpdatePO"

<SOAP-ENV:Envelope   xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance"   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope"   xsi:schemaLocation=    "http://www.northwindtraders.com/schemas/NPOSchema.xsd">  <SOAP-ENV:Header xsi:type="Transaction">     <transactionID mustUnderstand="1">       10000000    </transactionID>   </SOAP-ENV:Header>   <SOAP-ENV:Body xsi:type="NorthwindBody">    <UpdatePO>       <orderID>0</orderID>       <customerNumber>999</customerNumber>       <item>89</item>       <quantity>3000</quantity>       <return>0</return>      </UpdatePO>    </SOAP-ENV:Body> </SOAP-ENV:Envelope>

Page 20: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Application

Web browser

SOAP

GatewayCenter Server

GDI Data

Servlet

SOAP

SOAP

Gateway

Legacy Data

Application

HTTP /HTTPS

HTML

HTTP /HTTPS

SOAP

HTTP /HTTPS

GovernmGovernmentent

DataDataExchangExchang

ee(GDX)(GDX)

ตัวอยุ�างโครงการ e-Government Data Exchange

Page 21: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส
Page 22: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Oracle

PeopleSoft

DB2

Website

Loans

Credit

Auto

Mortgage

CRM

PhoneBanking

Branches

B2B Integration

Inventory

Suppliers

OnlineExchange

B2B Spending: At least $26 Billion in 2000

B2B allows interoperability beyond the firewall, between a smallnumber of internal enterprise applications and a small number ofexternal applications and companies (e.g. online exchanges).

Page 23: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Web Services Spending: $25 Million in 2000$250 Million in 2001$5 billion in 2004

Industry State: Young

CreditCard Co.

(CheckFree)

Oracle

PeopleSoft

DB2

Website

Loans

Credit

Auto

Mortgage

CRM

PhoneBanking

Branches

Any-thing-to-AnythingWeb Services Integration

Inventory

AffiliateBanks

Government

Partners

Web services allows anything-to-anything interoperability between both internal and external systems.

Self-ServiceApplications

On-PremiseLocations

OnlineExchange

MortgageBrokers

Suppliers

CreditAgencies

Page 24: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส
Page 25: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส
Page 26: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส
Page 27: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

UDDIUDDI ย$อิมาจาก Universal Description, Discovery and Integration

นั2าเสนัอิโดยหลายบร�ษั�ทเช้$นั Ariba, Microsoft, IBM, etc.

บอิกให�ทราบว$าบร�ษั�ทม�ผล�ตภ�ณฑ์�และบร�การอิะไรบ�างสามารถต�ดต$อิข้อิด2าเนั�นัธุ�รก�จการคี�าก�บบร�ษั�ทได�โดย

อิ�ตโนัม�ต�โดยผ$านัทาง Web Services

Page 28: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

WSDLWSDL ย$อิมาจาก Web Services Description Language

WSDL คี)อิคี�$ม)อิให�ก�บระบบ เพื่)*อิเร�ยนัร� �ว�ธุ�การเร�ยกใช้�งานั Web Services ท�*ต�อิงการ

WSDL เข้�ยนัข้�.นัตามแบบมาตรฐานั XML

Page 29: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

เนั)*อิงจากท2างานัอิย�$บนั Internet ซ�*งป8จจ�บ�นัม�เทคีโนัโลย�ในัการร�กษัาคีวามปลอิดภ�ยมากมายรอิงร�บอิย�$แล�ว

Web Services สามารถว�*งผ$านั Firewall ได�เนั)*อิงจาก SOAP ถ�กส$งโดยผ$านัโปรโตคีอิล HTTP

ระบบร�กษัาคีวามปลอิดภ�ยตามมาตรฐานัข้อิง PKI (Public Key Infrastructure) เช้$นั MD5 (Message Digest), SSL (Secure Socket Layer) และ PGP (Pretty Good Privacy)

Page 30: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

พื่�นัธุม�ตรทางการคี�าสามารถเก�ดข้�.นัได�ตลอิดเวลา โดยการคี�นัหาจาก UDDI การด2าเนั�นัธุ�รก�จการคี�าและบร�การสามารถเป9นัไปได�แบบอิ�ตโนัม�ต�ในัระด�บข้อิง

Application to Application (A2A) โดยการแลกเปล�*ยนัข้�อิม�ลผ$านัทาง Web Services

Web Services สามารถใช้�เป9นัส$วนัหนั�*งในัการด2าเนั�นัธุ�รก�จตามเฟรมเว�ร�คีข้อิง ebXML

ง$ายต$อิการนั2าไปใช้�งานัเนั)*อิงจากในัป8จจ�บ�นัม�เคีร)*อิงม)อิมากมายท�*ใช้�ช้$วยเหล)อิในัการพื่�ฒนัา Web Services

ลดต�นัท�นัในัการพื่�ฒนัาระบบบางอิย$างท�*ไม$จ2าเป9นัโดยข้อิบร�การจาก Web Services ข้อิงพื่�นัธุม�ตรทางการคี�า

Page 31: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Web Services เป9นัมาตรฐานัท�*ง$ายต$อิการพื่�ฒนัาเนั)*อิงจากอิย�$ในัร�ปแบบข้อิงข้�อิม�ลต�วอิ�กษัร

ม�ช้�ดเคีร)*อิงม)อิท�*สนั�บสนั�นัโดย Microsoft ตามแพื่ลตฟอิร�มข้อิง Microsoft .NET Framework

ม�ช้�ดเคีร)*อิงม)อิท�*สนั�บสนั�นัโดย Sun Microsystem ตามแพื่ลตฟอิร�มข้อิง Sun ONE (Sun Open Net Environment)

ม�ช้�ดเคีร)*อิงม)อิท�*สนั�บสนั�นัโดย IBM เช้$นั Web Services Toolkit เคีร)*อิงม)อิอิ)*นัๆท�*สนั�บสนั�นั SOAP, XML ท�.งท�*เป9นั Commercial Product และ Open Source

Page 32: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

เป9นัท�*ยอิมร�บในัระด�บโลก จากหลายๆหนั$วยงานัและอิงคี�กร ม�การใช้�งานัก�นัอิย$างกว�างข้วางและถ�กใช้�เป9นัโคีรงสร�าง

พื่).นัฐานัส2าหร�บการประสานังานัข้�ามระบบ ม�บร�การหลากหลายให�เล)อิกใช้� (สนัใจด�ต�วอิย$างได�จาก

xmethods.net และ salcentral.com) เป9นัเคีร)*อิงม)อิส2าหร�บการด2าเนั�นัธุ�รก�จอิอินัไลนั� อิ�กหลายอิย$างเช้$นั

E-Commerce, E-Business, E-Learning, E-Government, etc.

แนัวทางการใช้�งานัในัประเทศไทยเช้$นั โคีรงการโคีรงสร�างพื่).นัฐานัสารสนัเทศภาคีร�ฐ (Government Data Infrastructure)

Page 33: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

การใช้� Web Services เพื่)*อิท2าให�เก�ด Interoperability การใช้� Web Services และ UDDI เพื่)*อิด2าเนั�นัธุ�รก�จการคี�า การร�กษัาคีวามปลอิดภ�ยข้อิงข้�อิม�ลส2าหร�บ Web Services ข้�อิด�และข้�อิเส�ยข้อิง Web Services ประโยช้นั�ข้อิง Web Services ต$อิการพื่�ฒนัาประเทศ คีวามเป9นัไปข้อิง Web Services ในัป8จจ�บ�นัและอินัาคีต

Page 34: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Web Services Interoperability Organization (WS-I) IBM, Microsoft, Intel, HP, SAP, BEA Systems,

Accenture, etc.

Mission Ensuring interoperability among different vendors

Action Plans To develop Tools for testing software conformance to

WS standards: SOAP, WSDL, UDDI To publish an architectural road map

Page 35: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

Web Services IBM’s Web Services: http://www.alphaworkers.ibm.com/webservices Microsoft’s Web Services: http://msdn.microsoft.com/webservices IBM’s Web Services tool kit:

http://www.alphaworks.ibm.com/tech/webservicestoolkitSOAP SOAP specification: http://www.w3.org/TR/SOAP Apache’s SOAP toolkit: http://xml.apache.org/soap/index.html Microsoft;s SOAP resources, http://msdn.mircosoft.com//soapUDDI UDDI Specification: http://www.uddi.org Microsoft’s UDDI resources: http://msdn.microsoft.com/uddi IBM’s UDDI resource:

http://www.alphaworks.ibm.com/tech/UDDIregWSDL WSDL Specification: http://www.w3.org/TR/wsdl

Page 36: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส

XML Industry: http://xml.coverpages.org XML Namespaces: http://jclark.com/xml/xmlns.htm W3C’s Web Distributed Data Exchange:

http://www.wddx.org Microsoft’s .NET: http://www.microsoft.com/net Cobol Resources: (integrating Cobol into Web-based

applications) http://www.cobolreport.com ebXML: (United Nations Center for Trade Facilitation and e-

Business & OASIS) http://www.ebxml.org News: “High Tech Leader form Web Services Alliance”

http://www.commweb.com/article/IWK20020205S0010

Page 37: Web Services The Next Generation of Web ขยายโอกาสและสร้างพันธมิตรทางธุรกิจด้วยเว็บเซอร์วิส