lecture12

lecture12 - CSE 135 Server Side Web Languages Lecture # 12...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 135 Server Side Web Languages Lecture # 12 Web Services
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 135 Server Side Web Languages Lecture # 12 What are Web Services? • Communication over the Web (typically program to program / server to server) generally using XML but now more and more JSON or even raw HTML responses • Two general flavors to Web Services RPC oriented Web services Data interchange oriented Web services • Multitude of formats Simple ad-hoc URL queries including RESTful services SOAP XML-RPC
Background image of page 2
CSE 135 Server Side Web Languages Lecture # 12 General Issues • Big Picture – Service discovery – Data format issues – Payment / Business model • Implementation – Platform integration – Reliability – Security – Performance – General Transport / Programming How Tos
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 135 Server Side Web Languages Lecture # 12 Roles under Web Services • Service Provider Provides a service (e.g. Stock quotes) and allows it to be accessed over a network (typically the Internet) • Service Requestor A consumer of a Web service (e.g. a program to request the stock quote) Generally an XML based request made over some network connection • Service Registry Directory of available services available for consumption • May be free or may be paid for
Background image of page 4
CSE 135 Server Side Web Languages Lecture # 12 Traditional Roles in Web Services Visually Service Registry Requestor Provider Invoke service Response sent? Discover service ?
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 135 Server Side Web Languages Lecture # 12 Web Services Stack Transport HTTP,FTP,SMTP,… Messaging SOAP,XML-RPC, custom XML Description WSDL Discovery UDDI
Background image of page 6
CSE 135 Server Side Web Languages Lecture # 12 Web APIs Galore http://www.programmableweb.com/apis Many Ajax APIs? • Not really, same origin concern…for now <script> tag APIs in a lot of cases • Returns wrapped JSON packets – myCallback({“zip”:92109,”temp”: 91}); • Potential for major security abuses Most of these APIs tend to be RESTful – likely due to desire to make client consumable, coupled with lack of knowledge of SOAP and XML by many developers Mashups – combining the data from a number of services together to create another service This public services bring in issues of availability and ownership Abuse and the creation of ad-hoc APIs is rampant (thus CAPTCHAs and other access control schemes)
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSE 135 Server Side Web Languages Lecture # 12 How: Proxy to a Service • A script on the server of delivery calls a remote Web service (or performs a scrape) and passes the result back – Pros • Avoids any concern of same origin for client-side – Cons • Puts burden on the server • May create a proxy for attack/exploit
Background image of page 8
CSE 135 Server Side Web Languages Lecture # 12 Simple Flickr Service Proxy <?php header("Cache-Control: no-cache"); header("Pragma: no-cache"); header("Content-Type: text/xml");
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/10/2010 for the course CSE CSE135 taught by Professor Powell during the Summer '10 term at UCSD.

Page1 / 27

lecture12 - CSE 135 Server Side Web Languages Lecture # 12...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online