Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Services 101 Introduction to Web Services 2110472 Computer Networks Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.

Similar presentations


Presentation on theme: "Web Services 101 Introduction to Web Services 2110472 Computer Networks Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University."— Presentation transcript:

1 Web Services 101 Introduction to Web Services 2110472 Computer Networks Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University

2 Outline What is web service ? Any why ? Service-Oriented Architecture. Web Services Products. Existed and Future Applications. Trends and Future.

3 What is web service ? “Next-generation service-oriented Internet applications.” “Component-based software architecture.” “A concept of a programmable Internet.”

4 OK, what really is web service ? Well…nobody really knows for sure. Everyone has its own definition. Something in common Software components with well-defined interfaces. Communicating through XML-based messaging. Connecting via HTTP-based protocol.

5 Why then ? Everybody is doing it !!!

6

7 No…that’s not a good answer!!!

8 Web Services Model

9 Driving Forces E-business trends Flexible architecture. From RPC to messaging-centric model. Business needs EAI – Enterprise Application Integration. B2B / G2G.

10 The Ultimate Goals Web service is Platform independent. Implementation independent. Software Components. Features Described using a service description language. Published to a registry of services. Discovered through a standard mechanism. Invoked through a declared API over a network. Composed with other services.

11 Service Oriented Architecture Publish – Find – Bind. Service Registry Service Provider Service Requestor Publish Bind Find UDDI SOAP WSDL

12 Web Services Interoperability Stacks Proposed to W3C by IBM and Microsoft in March 2001 Wire stack. Description stack. Discovery stack.

13 Wire Stack Determine how a message is sent from the service requestor to the service provider. Components HTTP (SMTP, FTP, RMI/IIOP, MQSeries). XML. SOAP. “XML-based RPC over HTTP”

14 SOAP RPC Request POST /bws/inventory.jws HTTP/1.0 … <SOAP-ENV:Envelope SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/http://schemas.xmlsoap.org/soap/encoding/ xmlns:xsd=http://www.w3.org/2001/XMLSchemahttp://www.w3.org/2001/XMLSchema xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance>http://www.w3.org/2001/XMLSchema-instance 947-TI 1

15 SOAP RPC Response HTTP/1.0 200 OK … <SOAP-ENV:Envelope SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/http://schemas.xmlsoap.org/soap/encoding/ xmlns:xsd=http://www.w3.org/2001/XMLSchemahttp://www.w3.org/2001/XMLSchema xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance>http://www.w3.org/2001/XMLSchema-instance true

16 SOAP Messaging <SOAP-ENV:Envelope SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/http://schemas.xmlsoap.org/soap/encoding/ xmlns:xsd=http://www.w3.org/2001/XMLSchemahttp://www.w3.org/2001/XMLSchema xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance>http://www.w3.org/2001/XMLSchema-instance <po xmlns=http://www.skatestown.com/ns/pohttp://www.skatestown.com/ns/po id=“503383” submitted=“2001-12-06”> The Skateboard Warehouse One Warehouse Park … …

17 Description Stack Describe the details of the service What a service does (provided methods). How a service is accessed (data format & protocol). Where a service is located (e.g. URL). WSDL / WSEL XML-based format. Service implementation and interface. Endpoint description.UDDI.

18 Discovery Stack Provide service discovery mechanism. There are 2 levels Inspection – discovering the service description given that service identifier (URL) is known. IBM’s ADS and Microsoft’s DISCO. Directory – capabilities-based lookup. UDDI.

19 What are in the market ? J2EE BEA – WebLogic Server. IBM – WebSphere SOAP toolkit. Sun – SunOne. Iona – XMLBus Macromadia – JRun 3.1 / JRun 4.0. Apache – Axis (SOAP API). University of Indiana – SOAP-RMI. Mind Electric – GLUE. Microsoft’s.NET

20 Any existing applications ? Yes…there are some… Dealersphere National Auto Dealer Association. Car dealers to communicate with other companies via ebXML and SOAP. Features? Handling credit checks. Getting the exact color and car options. Locating the car at another dealer.

21 Any existing applications ? Public eService Infrastructure (PSi) iDA Singapore. Integrate over 600 online services from several government agencies. Ex: Request for a new driver’s license. Service provided by Land Transport Authority of Singapore. However, citizen information is needed from Citizen Department. And payment must be made online. Other services also need these information.

22 Future applications ? Authentication services Microsoft’s Passport. Liberty Alliance. Agent-based shopping. Internet syndication.

23 Conclusion Web services is still unclear Open areas. Or just a hype! Publish + find + bind = WSDL + UDDI + Soap

24 References S. Graham et. al, “Building Web Services with Java”, SAMS Publishing, 2002. http://www.webservices.org And others…

25 Questions ?


Download ppt "Web Services 101 Introduction to Web Services 2110472 Computer Networks Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University."

Similar presentations


Ads by Google