Se ha denunciado esta presentación.
Se está descargando tu SlideShare. ×

Web of Science: REST or SOAP?

Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Próximo SlideShare
REST, RESTful API
REST, RESTful API
Cargando en…3
×

Eche un vistazo a continuación

1 de 17 Anuncio
Anuncio

Más Contenido Relacionado

Presentaciones para usted (20)

A los espectadores también les gustó (20)

Anuncio

Similares a Web of Science: REST or SOAP? (20)

Más de Duncan Hull (20)

Anuncio

Web of Science: REST or SOAP?

  1. REST or SOAP Which style of Service is “best” for building the Web of Science? Duncan Hull Web Services Workshop 2007-09-20
  2. Looks like we’ll be developing some WS-* <ul><li>What are Web Services? A vague term, but in practice it usually means either SOAP-based or HTTP-based machine-to-machine communication: </li></ul><ul><ul><li>SOAP style description </li></ul></ul><ul><ul><li>Demonstrate simpler REST style with examples </li></ul></ul><ul><li>Introduce some pros and cons of each </li></ul><ul><li>Conclusions </li></ul><ul><ul><li>What should we be doing in dbkgroup and why? </li></ul></ul>
  3. WS-* are interesting because they transform the web into… <ul><li>--Harry Halpin and Henry Thompson, University of Edinburgh “One document to bind them: combining XML, web services, and the semantic web”, Proceedings of WWW2006 conference, see http://www.nodalpoint.org/2006/05/24/dub_dub_dub_06 image above via http://lipmagazine.org </li></ul>one open-ended, vast, decentralised computer
  4. Creating a bioinformatics nation? <ul><li>A Web services model will allow biological data to be fully exploited… </li></ul>--Lincoln Stein, Cold Spring Harbor Laboratory Nature 2002, 417(6885):119-20 http://view.ncbi.nlm.nih.gov/pubmed/12000935 e.g. “jimome” browser at http://jimwatsonsequence.cshl.edu/
  5. <ul><li>More than 1 600 000 job submissions were processed using Web Services during 2006, accounting for around 30% of all jobs run at the EBI during that period. </li></ul>--Alberto Labarga et al in Nucleic Acids Research European Bioinformatics Institute (EBI), see http://www.cs.man.ac.uk/~hulld/q2007-06-28.html
  6. <ul><li>If you hit the Amazon.com gateway page, the application calls more than 100 [web] services to collect data and construct the page for you . </li></ul>--Werner Vogels, Chief Technology Officer (CTO) Amazon.com, interviewed in ACM Queue, 2006 see, http://www.cs.man.ac.uk/~hulld/q2006-09-27.html
  7. WS-heaven or WS-hell? Users / clients Internet or Web (Interweb)?! http://en.wikipedia.org/wiki/Interweb Service providers: INPUT OUTPUT etc… workflow
  8. SOAP and WSDL walkthrough Registry WSDL / UDDI Search / Browse SOAP (xml) HTTP INPUT / OUTPUT http://www.w3.org/TR/soap/ http://www.w3.org/TR/wsdl/ Ugly, heavyweight and complicated, seems like overkill? “ layers of complexity that aren’t needed”?
  9. No matter how hard I try, I still think the WS-* stack is bloated, opaque, and insanely complex. I think it's going to be hard to understand, hard to implement, hard to interoperate, and hard to secure. --Tim Bray, Director of Web technology at Sun Microsystems Inc., “Loyal opposition to Web Services” (2004) http://www.cs.man.ac.uk/~hulld/q2004-11-02.html
  10. Web service goodness The problem is most of today's “web services” have nothing to do with the Web.... Today's “web service” architectures reinvent or ignore every feature that makes the Web successful. --Leonard Richardson & Sam Ruby (IBM) “ RESTful Web Services ” (2007) book, see http://www.cs.man.ac.uk/~hulld/q2007-06-30.html
  11. H.T.T.P. is just C.R.U.D…Create, Read, Update, Delete H.T.T.P. is K.I.S.S. too ( K eep I t S imple S tupid) DELETE (delete an existing resource) D ELETE PUT (modify or overwrite an existing resource) U PDATE GET (Retrieve a representation of a resource) R EAD POST (create a new resource) C REATE HTTP request method CRUD
  12. REST example: EBI services OR OR etc.
  13. REST style <ul><li>No SOAP, Simpler ( don’t have to use SOAP ) and “dirtier” too! </li></ul><ul><li>No standard way (yet) of creating a registry of services </li></ul><ul><ul><li>though many different options exist </li></ul></ul><ul><li>XML is optional, our resources can be anything we want </li></ul><ul><li>There is a lot more to REST than this, it’s an architectural style for building web applications </li></ul>
  14. REST criticism <ul><li>Foolish to model everything as HTTP GET, POST, PUT and DELETE operations? </li></ul><ul><li>How to do </li></ul><ul><ul><li>Atomic transactions (all actions must be completed or none) </li></ul></ul><ul><ul><li>Reliable messaging? </li></ul></ul><ul><ul><li>Security (HTTP Authentication leaves a lot to be desired) </li></ul></ul><ul><li>Too simple </li></ul><ul><li>No toolkits for REST </li></ul><ul><ul><li>(a criticism from software vendors who want to sell you bloat-ware) </li></ul></ul>
  15. Conclusions 1: Gartner’s Hype cycle <ul><li>--Eric Newcomer IONA, see http://www.cs.man.ac.uk/~hulld/q2007-04-26.html </li></ul>Web services are now past the peak of inflated expectations, through the trough of disillusionment, on the way toward mainstream adoption. 2000 2002 2004 2006 2008 You are here (probably) SOAP WSDL
  16. Conclusions 2: Who can you trust? <ul><li>Be wary of the opinions of people working for technology companies. </li></ul><ul><ul><li>Especially if they have long hair, beards or hats (Hull, 2007) </li></ul></ul><ul><ul><li>… but you knew that already </li></ul></ul><ul><li>Reality of (bio- / chemo- / whatevero-) informatics on the Web is we have a legacy of both, and this will probably continue. So we need to understand and use both styles… </li></ul><ul><li>myGrid Taverna handles BOTH styles and hides some of the SOAP and WSDL nastiness </li></ul><ul><ul><li>but they are difficult to sweep under the carpet </li></ul></ul><ul><li>When we’re developing NEW services, I advocate REST-style services which are simpler and probably safer for most of the things we’ll need them for </li></ul><ul><ul><li>Only use SOAP if really you have to… </li></ul></ul><ul><ul><li>Said only a little about WHY in a 7 minute talk but… </li></ul></ul><ul><ul><li>… can provide more details if you buy me a beer </li></ul></ul>Don’t trust ANYONE about Web Services (including me!)
  17. Acknowledgements / References <ul><li>Thanks to everyone I robbed stuff off : </li></ul><ul><ul><li>Homer Simpson, Michael Parkin, Sam Ruby, Paul Downey, Tim Bray, Werner Vogels, Carole Goble, Stian Soiland, Tom Oinn and myGrid team, Leonard Richardson, Tim O’Reilly, Timo Hannay, Lincoln Stein, Roy Fielding, Greg Tyrelle, Harry Halpin, Henry Thompson, Hugo Haas, Roger Costello, John Cowan, Eric Newcomer, Steve Vinoski, Richard Apodaca and Douglas Kell </li></ul></ul><ul><li>These slides are also available at http://www. slideshare .net/dullhunk </li></ul><ul><li>See Also: </li></ul><ul><ul><li>“ REST tutorial” by Roger Costello at http://www.xfront.com/REST.htm </li></ul></ul><ul><ul><li>“ Reconciling REST and Web Services” by Hugo Haas at http://www.w3.org/2005/Talks/1115-hh-k-ecows/ </li></ul></ul><ul><ul><li>“ If Web Services are the Answer, What is the Question?” by Michael Parkin http://www.archive.org/details/IfWebServicesAreTheAnswerWhatsTheQuestion </li></ul></ul><ul><ul><li>“ RESTful Web Services” by John Cowan http://home.ccil.org/~cowan/restws.pdf </li></ul></ul><ul><li>Questions? </li></ul>

Notas del editor

×