Information Technology Reference
In-Depth Information
Figure 1.7 The SOAP request (a) and response (b) of the GetEndOfDayData operation
in the NASDAQ Analytics Web Service. The actual SOAP bodies are highlighted in
rectangles. Here we ask the end-of-date data for IBM of January 6, 2012.
that offers historical stock quote data. Figure 1.7 illustrates the actual
SOAP request and response of the GetEndOfDayData operation. 3 In the
SOAP body, we ask the end-of-date stock data, by giving a symbol
(IBM), and start and end date on January 6, 2012. In the SOAP header
we need to give the user name and password 4 for an authentication
purpose. The SOAP response includes Outcome (Success), authentica-
tion identity (from Header of the SOAP request), and open, close, high,
and low price of the IBM stock, as well as the volume.
REST (Representational State Transfer) is a lightweight alternative
to WSDL/SOAP based Web services. While WSDL/SOAP is still
dominant in enterprise applications, REST services are becoming
more popular on the Web. For example, companies such as Yahoo,
Google, and Facebook have all adopted REST as their service model,
while deprecating many of the WSDL/SOAP counterparts. Key archi-
tectural features of REST services include the following:
Use URI to Organize Web Resources. In the REST paradigm,
every piece of data (also known as, resource) users can access is
exposed using a URI (uniform resource identifier). For example,
3 http://www.nasdaqdod.com/NASDAQAnalytics.asmx?op
GetEndOfDayData
4 An account with limited free access to this service can be obtained by registration at the
Nasdaq data on demand Web site: https://www.nasdaqdod.com/.
ΒΌ
Search WWH ::




Custom Search