Published on

Web services for Beginners

Published in: Technology
1 Comment
No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Webservices

    1. 1. INTRODUCTION TO WEB SERVICES Gerard Sylvester
    2. 2. Web Service <ul><li>A Web Service is a network accessible interface to application functionality, built using standard Internet protocols </li></ul><ul><li>A Web Service exposes functionality to a </li></ul><ul><li>consumer </li></ul><ul><ul><li>Over the Internet or intranet </li></ul></ul><ul><ul><li>A programmable URL </li></ul></ul><ul><ul><li>Functions you can call over the Internet </li></ul></ul>
    3. 3. Web service simplified Application Code Application Client Web service Platform and language specific communication Platform and language agnostic communication abstraction layer
    4. 4. Web Service <ul><li>Based on Web standards </li></ul><ul><ul><li>HTTP/(S), XML, SOAP, WSDL, UDDI </li></ul></ul><ul><ul><li>Can be implemented in any language on any platform </li></ul></ul><ul><ul><li>Component-like, reusable </li></ul></ul><ul><ul><li>Not tied to any platform / languages </li></ul></ul>
    5. 5. Components of a Web Service <ul><li>A standard way for communication (SOAP) </li></ul><ul><li>A uniform data representation and exchange mechanism (XML) </li></ul><ul><li>A standard meta language to describe the services offered (WSDL) </li></ul><ul><li>A mechanism to register and locate WS based applications (UDDI) </li></ul>
    6. 6. The Web Service architecture Service Registry Service Provider Service Consumer Publish Find Bind
    7. 7. Underlying Technology Web Service Stack Ubiquitous Communications: Internet Universal Data Format: XML Wire Format: Service Interactions: SOAP Description: Formal Service Descriptions: WSDL Simple, Open, Broad Industry Support Directory: Publish & Find Services: UDDI Inspection: Find Services on server: DISCO
    8. 8. Underlying Technology Web Service Stack Directory http://www.uddi.org UDDI DISCO WSDL SOAP Inspection http://www.ibuyspy.com/ibuyspy.disco Description http://www.ibuyspy.com/ibuyspycs/InstantOrder.asmx?wsdl Wire Format Locate a Service Link to Discovery Document (XML) Request Discovery Document Return Discovery Document (XML) Return Service Description (XML) Return Service Response (XML) Request Service Request Service Description Web Service Client UDDI or other directory service Web Service
    9. 9. Universal Description, Discovery and Integration (UDDI) Protocol <ul><li>Enables enterprises to quickly and dynamically discover and invoke Web Services both internally and externally </li></ul><ul><li>Yellow pages of Web services </li></ul><ul><li>Examples </li></ul><ul><ul><li>www.uddi.org </li></ul></ul><ul><ul><li>www.biomoby.org </li></ul></ul><ul><ul><li>www.xmethods.com </li></ul></ul>
    10. 10. Simple Object Access Protocol (SOAP) <ul><li>SOAP is a lightweight (XML-based) protocol for exchange of information in a decentralized, distributed environment. It consists of mainly of: </li></ul><ul><ul><li>an envelope that defines a framework for describing what is in a message and how to process it </li></ul></ul><ul><ul><li>relies heavily on XML standards (schemas & name spaces) </li></ul></ul>
    11. 11. The SOAP message structure SOAP Envelope SOAP Header Header Block Message Body SOAP Body Fault Handlers
    12. 12. Web Service Definition Language (WSDL) <ul><li>WSDL is an XML format for describing network services operating on messages containing either document-oriented or procedure-oriented information. </li></ul><ul><li>It defines Web Service as collection of network endpoints or ports . </li></ul>
    13. 13. <ul><li>The following is a list of Web service markup languages . </li></ul><ul><li>BEEP - Blocks Extensible Exchange Protocol </li></ul><ul><li>BPEL - Business Process Execution Language </li></ul><ul><li>E-Business XML </li></ul><ul><li>REST - Representational State Transfer </li></ul><ul><li>SOAP - outgrowth of XML-RPC , originally an acronym for Simple Object Access Protocol </li></ul><ul><li>UDDI - Universal Description, Discovery, and Integration </li></ul><ul><li>WSDL - Web Services Description Language </li></ul><ul><li>WSFL - Web Services Flow Language (superseded by BPEL ) </li></ul><ul><li>WSCL </li></ul><ul><li>XML-RPC - XML Remote Procedure Call </li></ul>
    14. 14. XML <ul><li>Stands for “Extensible Markup Language” </li></ul><ul><li>Language specification for describing data </li></ul><ul><ul><li>Syntax rules </li></ul></ul><ul><ul><li>Syntax & Grammar for creating Document Type Definitions </li></ul></ul><ul><li>Widely used and open standard </li></ul><ul><ul><li>Defined by the World Wide Web Consortium (W3C) </li></ul></ul><ul><ul><li>http://www.w3.org/TR/2000/REC-xml-20001006 </li></ul></ul>
    15. 15. Advantages of WebServices <ul><li>Allow programs written in different languages on different platforms to distribute an application in a standards-base manner. </li></ul><ul><li>Adapt the loosely coupled Web programming model for use in applications that are not browser based. </li></ul><ul><li>The goal is to provide a platform for building distributed applications using software </li></ul><ul><ul><li>- running on different operating systems and devices, </li></ul></ul><ul><ul><li>- written using different programming languages and tools from multiple vendors, </li></ul></ul><ul><ul><li>- all potentially developed and deployed independently. </li></ul></ul>
    16. 16. Footer <ul><li>Web Service security </li></ul><ul><ul><li>Web Service Security Model Principles </li></ul></ul><ul><ul><ul><li>WS-Security </li></ul></ul></ul><ul><ul><ul><li>WS-Policy </li></ul></ul></ul><ul><ul><ul><li>WS-Trust </li></ul></ul></ul><ul><ul><ul><li>WS-Privacy </li></ul></ul></ul><ul><ul><ul><li>WS-SecureConversation </li></ul></ul></ul><ul><ul><ul><li>WS-Federation </li></ul></ul></ul><ul><ul><ul><li>WS-Authorization </li></ul></ul></ul><ul><ul><ul><li>Microsoft Passport Service – Single click sign-on! </li></ul></ul></ul>
    17. 17. Future…. <ul><li>Semantic Web Services </li></ul><ul><ul><li>Extension of the current web – information is given well-defined meaning </li></ul></ul><ul><ul><li>Contains machine readable instructions and metadata expressed </li></ul></ul><ul><ul><li>in RDF. </li></ul></ul><ul><ul><li>Leads to intelligent web. </li></ul></ul>
    18. 18. Part - II Microsoft .NET
    19. 19. What is .NET <ul><li>It is the combination of: </li></ul><ul><ul><li>.NET Framework </li></ul></ul><ul><ul><li>Web Services </li></ul></ul><ul><ul><li>.NET Enterprise Servers </li></ul></ul><ul><li>The .NET Framework consists of: </li></ul><ul><ul><li>The common language runtime </li></ul></ul><ul><ul><li>Class libraries, organized into easily comprehensible namespaces </li></ul></ul><ul><ul><li>ASP.NET </li></ul></ul>
    20. 20. .NET Framework Operating System Common Language Runtime Base Class Library ADO.NET and XML ASP.NET Web Forms Web Services Mobile Internet Toolkit Windows Forms Common Language Specification VB C++ C# JScript J# Visual Studio.NET
    21. 21. C# (pronounced as C Sharp) <ul><li>C# is a strongly typed object-oriented language from Microsoft. </li></ul><ul><li>designed to give the optimum blend of simplicity, expressiveness, and performance. </li></ul><ul><li>Released by June 2000. </li></ul><ul><li>The C# language was built with the hindsight of many languages, but most notably Java and C++. </li></ul><ul><li>It was co-authored by Anders Hejlsberg and Scott Wiltamuth </li></ul>
    22. 22. Hello World using System; class Hello { public static void Main() { Console.WriteLine(&quot;Hello, World!&quot;); } }
    23. 23. The Common Language Runtime Compilation and Execution Compilation Before installation or the first time each method is called Execution JIT Compiler Native Code MSIL Code Metadata Source Code Language Compiler
    24. 24. Gerard Sylvester Questions? [email_address] http://germic.blogspot.com http://www.gerardsylvester.com