web services introduction to webintroduction to web ...sirisuda/290371/290371_ch04.pdfdescribes the...
TRANSCRIPT
Introduction to WebIntroduction to Web Services and SOAServices and SOA
Chapter 4
Chapter 04 Intro WS 1
OutlineWeb Services
Web TechnologyWhat is Web ServicesWhy Web ServicesWeb Services Architecture and standardWeb Services Architecture and standard
Services Oriented Architecture (SOA)What are Services?What are Services?SOA DevelopmentSOA and Web Service Integration
Case study
Chapter 04 Intro WS 2
Web Technology
Static Web PageDynamic Web PageWeb services
Chapter 04 Intro WS 3
Traditional Web Interaction
User
Web Application
HTML
Web ApplicationWeb
Chapter 04 Intro WS 4
Web Services Interaction
Application
Web Services
XML
Web ServicesWeb
Chapter 04 Intro WS 5
Web Application vs. Web Services
Web Application Web ServicesHTMLUser-to-program
XMLProgram-to-program p g
interactionStatic integration of
g p ginteractionDynamic integration ofStatic integration of
componentsMonolithic service
Dynamic integration of componentsService aggregationMonolithic service Service aggregation
Chapter 04 Intro WS 6
Distributed Computing Technologies
Chapter 04 Intro WS 7
Internet Evolution
Chapter 04 Intro WS 8
What is Web Services
"A Web service is a software system designed to i bl hi hi i isupport interoperable machine-to-machine interaction
over a network. It has an interface described in a hi bl f ( ifi ll WSDL)machine-process able format (specifically WSDL).
Other systems interact with the Web service in a ib d b i d i i i SOAPmanner prescribed by its description using SOAP-
messages, typically conveyed using HTTP with an XML i li i i j i i h h W bXML serialization in conjunction with other Web-related standards."
Chapter 04 Intro WS 9
Characteristics of Web Services
XML based everywhereM b dMessage-basedProgramming language independentCould be dynamically locatedCould be dynamically assembled or aggregatedAccessed over the internetLoosely coupledLoosely coupledBased on industry standards
Chapter 04 Intro WS 10
Web Services มาจาก
Web and Services SOA = Service –oriented Architecture
WWW SOA
Web Services Architecture
Chapter 04 Intro WS 11
Why Web Services ? 1/3
Platform neutralAccessible in a standard wayAccessible in an interoperable wayAccessible in an interoperable wayUse simple and ubiquitous toolsRelatively cheapSi lif t i i t tiSimplify enterprise integration
Chapter 04 Intro WS 12
Why Web Services ? 2/3
Interoperable – Connect across heterogeneous networks using ubiquitous web-based standardsEconomical – Recycle components, no installation and tight integration of softwareinstallation and tight integration of softwareAutomatic – No human intervention required even for highly complex transactions
Chapter 04 Intro WS 13
Why Web Services ? 3/3
Accessible – Legacy assets & internal applications are exposed and accessible on the WebAvailable – Services on any device, anywhere and anytimeanywhere, and anytimeScalable – No limits on scope of applications and amount of heterogeneous applications
Chapter 04 Intro WS 14
Web services platform elements
SOAP (Simple Object Access Protocol) UDDI (Universal Description, Discovery and Integration)Integration) WSDL (Web Services Description Language)
Chapter 04 Intro WS 15
Web Service Architecture
Chapter 04 Intro WS 16
Web Service Architecture
Chapter 04 Intro WS 17
Web Service Architecture
Chapter 04 Intro WS 18
Operation Models for Web Services 1/3
Web Service ProviderCreates the Web service typically as SOAP-based service interfacesCreates the Web service typically as SOAP-based service interfacesDeploys the service and makes them available for invocation over a networkDescribes the Web service as a WSDL based service descriptionRegisters the WSDL-based service description with a service broker, which is typically a UDDI registrywhich is typically a UDDI registry
Chapter 04 Intro WS 19
Operation Models for Web Services 1/3
RegistryStores the service description as binding templates and URLs to WSDL located in the service provider penvironmentList various service types, descriptions, andList various service types, descriptions, and locations of the services that help the service requesters find and subscribe to the requiredrequesters find and subscribe to the required services
Chapter 04 Intro WS 20
Operation Models for Web Services 1/3
Service ClientsLocates the required services by querying the UDDILocates the required services by querying the UDDI registryObtains the binding information and the URLs to identifyObtains the binding information and the URLs to identify the service providerInvokes the service providerpRetrieves the WSDL Service description for those registered servicesgCommunicate with the service providerExchange data or message by invoking the available
Chapter 04 Intro WS 21
g g y gservices in the service container
Web Services Protocol Stack (4 Layers)
Chapter 04 Intro WS 22
Web Services Protocol Stack (4 Layers)
Service TransportThi l i ibl f t ti b tThis layer is responsible for transporting messages between applications. Currently, this layer includes hypertext transfer protocol (HTTP), Simple Mail Transfer Protocol p ( ), p(SMTP), file transfer protocol (FTP)
XML MessagingThis layer is responsible for encoding messages in a common XML format so that messages can be understood at either end Currently this layer includes XML RPC andat either end. Currently, this layer includes XML-RPC and SOAP.
Chapter 04 Intro WS 23
Web Services Protocol Stack (4Web Services Protocol Stack (4 Layers)y )
Service DescriptionThi l i ibl f d ibi th bli i t fThis layer is responsible for describing the public interface to a specific web service. Currently, service description is handled via the Web Service Description Language p g g(WSDL).
Service Discovery�This layer is responsible for centralizing services into a common registry, and providing easy publish/find functionality Currently service discovery is handled viafunctionality. Currently, service discovery is handled via Universal Description, Discovery, and Integration (UDDI).
Chapter 04 Intro WS 24
SOAPSimple Object Access Protocol (SOAP)SOAP is based on XMLSOAP is based on XMLSOAP is platform independentindependentSOAP is language independentSOAP is simple and extensibleSOAP ll t tSOAP allows you to get around firewallsSOAP will be developed as
Chapter 04 Intro WS 25
SOAP will be developed as a W3C standard
WSDL
Web Service Description Language (WSDL)WSDL is an XML grammar for specifying a public interfaceWSDL is an XML grammar for specifying a public interface for a web service.Information on all publicly available functions.p yData type information for all XML message.Biding information about the specific transport protocol to be g p p pused.Address information for locating the specified service.Describing of SOAP Services
Chapter 04 Intro WS 26
Web Service Implementation
Service Provider
Chapter 04 Intro WS 27
Web Service Implementation
Service Requestor
Chapter 04 Intro WS 28
Open Source Web Services DevelopmentOpen Source Web Services Development Tools
Apache Axis http://ws.apache.org/axis
PHP NuSOAPPHP NuSOAP http://dietrich.ganx4.com/nusoap/index.php
SUN J2EE: Java Technology and WebServicesWebServices
http://java.sun.com/webservices/index.jsp
Chapter 04 Intro WS 29
Commercial Web Services DevelopmentCommercial Web Services Development Tools
BEA WebLogic Web Service http://dev2dev.bea.com//webservices
Cape Clear http://www.capeclear.com/
IBM WebShpere SoftwareIBM WebShpere Software http://www-306.ibm.com/software/websphere/
MS .NETMS .NET http://msdn.microsoft.com/webservices/
Systinet http://www.systinet.com/
webMethodshttp://www webmethods com
Chapter 04 Intro WS 30
http://www.webmethods.com
Web Servers
Microsoft IISS A li i SSun Application ServerApacheJarkata TomcatOracleSystinet Web ServerJBossJBossBEA Weblogic Server
Chapter 04 Intro WS 31
SSummaryWeb services technology exists for making different systems seamlessly work together
XML is the language of exchange dataWeb service standards are open standardsp
Web services have been developed and used extensively in many countriesextensively in many countriesThailand should develop and employ Web services technology more for the benefits of more effectivetechnology more for the benefits of more effective management and business profits
Chapter 04 Intro WS 32
ทมาของ SOA / Web Services
The business drivers for a new approachความตองการทางดานธรกจเปนตวขบเคลอนใหเกดการพฒนาซอฟตแวรในรบแบบใหม คอ Service-Oriented Architecture ภายใตเงอนไขดงน
ลดตนทนการพฒนาโดยใชเทคโนโลยทมอยเดมใหมากทสดตองมการพฒนาระบบอยางตอเนองเพอตอบสนองลกคาเพมความสามารถการแขงขน และรองรบเงอนไขตางๆทางธรกจ
Chapter 04 Intro WS 33
ทมาของ SOA / Web Servicesความหลากหลายของระบบ (Heterogeneity)
ระบบซอฟตแวรในระดบ Enterprise ตวอยางเชน ระบบงานของหนวยภาครฐ p ฐซงประกอบไปดวย ซอฟตแวรทหลากหลาย และแตกตางกน ทงในสวนเทคโนโลย ผผลต การทางาน และอายการใชงาน
การรวมระบบทมความแตกตางกน เปนเรองททาไดยากและเปรยบเหมอนฝนรายของนกพฒนาระบบไมสามารถทจะเปลยนแปลงซอฟตแวรทกตวใหมาจากผผลตเดยวกนได (Single-vendor approach)
เพราะซอฟตแวรทเหมาะสม และสนบสนนการทางานในทกเรอง เปนเรองทยากมาก
Chapter 04 Intro WS 34
ทมาของ SOA / Web Services
การเปลยนแปลง (Change) เนองจากการแขงขนในโลกของธรกจ ทตองอาศยความเรว และการแขงขนสงลกคาเปลยน Requirement เนองจากตองการปรบขบวนการเพอกลยทธ q การปรบเปลยนคณลกษณะของซอฟตแวร เพอทนตอสถานการณ
Chapter 04 Intro WS 35
What are Services?
Bank ServicesAccount management (opening and closing accounts).)Loans (application processing, inquiries about terms and conditions, accepting payments).terms and conditions, accepting payments).Withdrawals, deposits, and transfers.F i hForeign currency exchange.
Chapter 04 Intro WS 36
What are Services?
Chapter 04 Intro WS 37
Service Oriented Architecture (SOA)
A style of design that guides all aspects of creating and using Business Services throughout their lifecycleBusiness Services throughout their lifecycle.A way to define and provision an IT infrastructure to allow different applications to exchange data and participate in business processesOperating systems or programming languagesN li i b d l d i l l i lNew applications can be developed entirely, or almost entirely, by composing existing services.New applications can be assembled out of a collection ofNew applications can be assembled out of a collection of existing, reusable services.
Chapter 04 Intro WS 38
SOA Benefits
ReuseThe ability to create services that are reusable in multiple applications.
Efficiency The ability to quickly and easily create new services and new applications using a combination of new and old services, along with the ability to focus on the data to be shared rather than the implementation underneathshared rather than the implementation underneath.
Chapter 04 Intro WS 39
SOA Benefits
Loose technology couplingThe ability to model services independently of their execution environment and create messages that can be sent to any serviceto any service.
Division of responsibilityThe ability to more easily allow business people to concentrate on business issues, technical people to concentrate on technology issues and for both groups toconcentrate on technology issues, and for both groups to collaborate using the service contract.
Chapter 04 Intro WS 40
Service Oriented Architecture (SOA)
Chapter 04 Intro WS 41
Service Oriented Architecture (SOA)
Chapter 04 Intro WS 42
Service Oriented Architecture (SOA)
Chapter 04 Intro WS 43
Service Oriented Development
Chapter 04 Intro WS 44
Service Oriented Development
Chapter 04 Intro WS 45
SOA and Web Service Integration
Web services integration (WSI)The tactical and opportunistic application of Web services to solving integration and interoperability problems.
Service-oriented integration (SOI)Integration using Web services in the context of an SOA that is, the strategic and systematic application of Web services to solving integration and interoperability problemsproblems.
Chapter 04 Intro WS 46
Point-to-Point Integration
Chapter 04 Intro WS 47
Point-to-Point Integration
Chapter 04 Intro WS 48
An Integration Architecture
Chapter 04 Intro WS 49
Summary
SOA is a style of design that guides all aspects of creating and using business servicesof creating and using business services throughout their lifecycle. And promise of
ReuseReuseEfficiencyLoose technology couplingLoose technology couplingDivision of responsibility
Web Services is technology to help the conceptWeb Services is technology to help the concept of SOA.
Chapter 04 Intro WS 50
Case Study
Chapter 04 Intro WS 51
Phuket One Stop Services Portalp
Chapter 04 Intro WS 52
Case Study : ประโยชนทหนวยงานไดรบ
เชงบรหารดานเทคนคการทางานรวมกนของซอฟตแวรและฐานขอมลทหลากหลาย
(heterogeneous)สามารถเกดการแลกเปลยนขอมลและบรการไดอยางอตโนมต เสมอนเปนซอฟตแวรตวเดยวกน (interoperability)yการสรางบรการขนมาใหม หรอการน าบรการเกามาประยกตใชสามารถท าไดโดยงาย และรวดเรว (Efficiency and Reuse)โดยงาย และรวดเรว (Efficiency and Reuse)ลดความผดพลาดจากคน (human error)
Chapter 04 Intro WS 53