Bottom-Line Web Services


Published on

Web services for citizens

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Bottom-Line Web Services

  1. 1. Bottom-line web services Demystifying, coding and even more coding
  2. 2. So much confusion <ul><li>What </li></ul><ul><li>Why </li></ul><ul><li>How </li></ul>
  3. 3. What! <ul><li>Some would say: </li></ul><ul><li>Your new best friends </li></ul><ul><li>The savior of your business (or projects) </li></ul><ul><li>The new generation of web </li></ul><ul><li>Others would say: </li></ul><ul><li>The doom of your web app and business </li></ul>
  4. 4. What the heck! <ul><li>More confusion: </li></ul><ul><li>SOAP WSDL UDDI </li></ul><ul><li>XML JSON </li></ul><ul><li>XML-RPC JSON-RPC </li></ul>
  5. 5. So Really, What are they?! <ul><li>In a very straight answer they are: </li></ul><ul><li>a network interface to application functionality, based on standard Internet technologies. </li></ul>
  6. 6. Take a look <ul><li>A Web service lets you access application functionality over the Internet or just any other network! </li></ul>As a programmer Web services can be thought of as functions that you can call over the Internet!
  7. 7. we all speak the same language <ul><li>a Java program can access and use a Web service written in VB.NET and deployed on a Windows server just as easily as a Windows (say C#) program can use a Web service written in Java and running on a Linux Web server. </li></ul>
  8. 8. Like what? <ul><li>spell checking, translation , … </li></ul><ul><li>stock quotes, currency exchange rates, … </li></ul><ul><li>Weather Reports </li></ul><ul><li>And the list goes on and on! </li></ul>
  9. 9. How ! <ul><li>Web service technology has evolved around a stack of five technologies </li></ul>
  10. 10. Example <ul><li>Real examples goes across the stack in a top – down approach! </li></ul>
  11. 11. All that for just a RPC <ul><li>UDDI, WSDL, and SOAP </li></ul><ul><li>Nothing really new they are all XML Based </li></ul>
  12. 12. Exotic!!!!!!!!!!!!!
  13. 14. SOAP is Fat, XML-RPC is neat <ul><li>SOAP Specification is 11,000 words </li></ul><ul><li>XML-RPC Specification is 1500 words </li></ul><ul><li>XML-RPC has a stable specification, SOAP might undergo some changes </li></ul><ul><li>SOAP is meant for enterprise level apps </li></ul><ul><li>SOAP with be the W3C standard pretty soon! </li></ul>
  14. 15. Sample XML-RPC message <ul><li>Request (from your XML-RPC client): </li></ul><ul><li>  POST /xmlrpcInterface HTTP/1.0  User-Agent: Sitepoint XML-RPC Client 1.0  Host:  Content-type: text/xml  Content-length: 195  <?xml version=&quot;1.0&quot;?>  <methodCall> </li></ul><ul><li><methodName>forums.getNumTodaysThreads</methodName>    <params>       <param><value><string>Study</string></value></param>    </params>  </methodCall> </li></ul>
  15. 16. Sample XML-RPC message <ul><li>Response (from the XML-RPC server): </li></ul><ul><li>HTTP/1.1 200 OK  Connection: close  Content-Length: 148  content-Type: text/xml  Date: Wed, Jul 28 1999 15:59:04 GMT  Server: Sitepoint XML-RPC Server 1.0  <?xml version=&quot;1.0&quot;?>  <methodResponse>    <params>       <param>        <value><int>42</int></value>       </param>    </params>  </methodResponse> </li></ul>
  16. 17. XML vs. JSON <ul><li>James Clark (creator of XML) said: </li></ul><ul><li>any damn fool could produce a better data format than XML </li></ul><ul><li>Douglas Crockford Created JSON </li></ul>
  17. 18. JSON <ul><li>JSON (JavaScript Object Notation) is a lightweight data interchange format. </li></ul><ul><li>It is easy for humans to read and write. </li></ul><ul><li>It is easy for machines to parse and generate. </li></ul><ul><li>It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. </li></ul><ul><li>JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. </li></ul><ul><li>These properties make JSON an ideal data-interchange language. </li></ul>
  18. 19. Quick Sample
  19. 20. Oh, Thank you!!
  20. 21. References <ul><li>Web Services Demystified By Kevin Yank </li></ul><ul><li>at </li></ul><ul><li> </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.