Web Services, for DevDays Belfast

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Web Services, for DevDays Belfast - Presentation Transcript

    1. Web Services Chris McClelland DevDays, Belfast April 2009 chris@ecliptic-design.com
    2. About Specialising in Mobile Strategy, Development, Design and Usability. New and rapidly developing company based in Belfast, presently 4 people, but more to come! Established Jan 2009.
    3. Web Services? WEB APP “machine” API iPhone reques t data
    4. Why? WEB APP API Outsource - community development Growth Novel Use of Data
    5. Success Stories Google Maps Last.fm Ebay Facebook Twitter
    6. iPhone Developers Why? free content large existing user-base mashups
    7. @stroughtonsmith
    8. REST vs SOAP
    9. SOAP Simple Object Access Protocol XML SOAP XML to code and to decode data SOAP to transport it
    10. REST REpresentational State Transfer stateless just HTTP + URIs HTTP verbs: GET: Retrieves a resource POST: Sends data to create a resource PUT: Sends data to update a resource DELETE: Destroys a resource
    11. SOAP POST /InStock HTTP/1.1 Host: www.example.org Content-Type: application/soap+xml; charset=utf-8 Content-Length: nnn <?xml version=\"1.0\"?> <soap:Envelope xmlns:soap=\"http://www.w3.org/2001/12/soap-envelope\" soap:encodingStyle=\"http://www.w3.org/2001/12/soap- encoding\"> <soap:Body xmlns:m=\"http://www.example.org/stock\"> <m:GetStockPrice> <m:StockName>IBM</m:StockName> </m:GetStockPrice> </soap:Body> </soap:Envelope> XML (Extensible Markup Language)
    12. REST GET www.example.org/user/2
    13. methods URI POST /user/create GET /user/show/1 NOT RESTful POST /user/update/1 POST/GET /user/delete/1 POST /user GET /user/1 RESTful PUT /user/1 DELETE /user/1
    14. SOAP HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: nnn <?xml version=\"1.0\"?> <soap:Envelope xmlns:soap=\"http://www.w3.org/2001/12/soap-envelope\" soap:encodingStyle=\"http://www.w3.org/2001/12/soap- encoding\"> <soap:Body xmlns:m=\"http://www.example.org/stock\"> <m:GetStockPriceResponse> <m:Price>34.5</m:Price> </m:GetStockPriceResponse> </soap:Body> </soap:Envelope>
    15. REST http://api.flickr.com/services/rest/? request method=flickr.contacts.getList&api_key=XXX&api_sig=XXX data <contacts page=\"1\" pages=\"1\" perpage=\"1000\" total=\"3\"> <contact nsid=\"12037949629@N01\" username=\"Eric\" iconserver=\"1\" realname=\"Eric Costello\" friend=\"1\" family=\"0\" ignored=\"1\" /> <contact nsid=\"12037949631@N01\" username=\"neb\" iconserver=\"1\" realname=\"Ben Cerveny\" friend=\"0\" family=\"0\" ignored=\"0\" /> <contact nsid=\"41578656547@N01\" username=\"cal_abc\" iconserver=\"1\" realname=\"Cal Henderson\" friend=\"1\" family=\"1\" ignored=\"0\" /> </contacts>
    16. REST - data received XML JSON RSS, Atom RSS PDF Other e.g. PNG, Microformats
    17. SOAP - benefits WS-* offers options for Privacy, Transfer, Eventing, Addressing, Notification, ReliableMessaging Mature Enterprise
    18. REST Authentication done via HTTPS to avoid giving the application / developer your username and password: OAuth “An open protocol to allow secure API authorisation in a simple and standard method from desktop and web applications.”
    19. http://www.flickr.com/photos/factoryjoe/
    20. http://www.flickr.com/photos/factoryjoe/
    21. http://www.flickr.com/photos/factoryjoe/
    22. REST - benefits Simple Popular, very Web 2.0 Better performance & scalability Can be cached Allows diverse formats e.g. JSON Built into many web frameworks Easier in Objective-C
    23. iPhone Libraries HTTP - ASIHTTPRequest XML, Microformats, RSS, Atom - NSXMLParser, libxml JSON - json-framework Rails - ObjectiveResource SOAP - wsdl2objc OAuth - MPOAuthConnection
    24. RESTful APIs All Yahoo: flickr myspace, virb, facebook delicious Amazon Web Services, SimpleDB vimeo, youtube ebay google
    25. Thanks! @chrismcclelland chris@ecliptic-design.com www.ecliptic-design.com

    + chrismcclellandchrismcclelland, 7 months ago

    custom

    680 views, 1 favs, 0 embeds more stats

    Introduction to WebServices, Rest, SOAP, XML, iPhon more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 680
      • 680 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 13
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories