1
- Administrivia
!""#
$%$&#' ()*$+
,%
!)"&#-'
- .
Today
" ("$"$
- Web services
%"//"/!$$#
- (01!$$$
2""
(3(/!" $3,& 4$5!$
"!!$/#
!/!$
%%(#
Web service APIs
%//#"
0$3,,(
4"0#!$"!$ //"$ 6 ##!$
7"000#
!!3,,(8
2"!!*(3(595:+ 72"!!*:$:;$<#+ 0/##9!
1 Why bother? Google APIs - - PDF document
Administrivia !""#
!""#
%"//"/!$$#
(3(/!" $3,& 4$5!$
"!!$/#
%%(#
%//#"
4"0#!$"!$ //"$ 6 ##!$
7"000#
2"!!*(3(595:+ 72"!!*:$:;$<#+ 0/##9!
$"/#
%!$!/
%(/80
3,&"/
7"##
#!.??:#0:?" :!#!=%""@A7B
,//
("2"//
,#
#"
#!!$
#$!"
;" %(
("""$""/4
#!.??!::0#:?&!
F6 .#@>.0#.! #!.??!::0#:?&!?C-?;"6!: ">G F6!@>"">$@>,# "/"5###.-%5 05HIH>G F"G:-'IF?"G F$"G2-:IJF?$"G F%""G-6,%C<F?%""G F70G4C%<F?70G F?G FK!GHIH2--HF?K!G F70G4F?70G F?6G F?6G
<wsdl:portType name="HelloWorld"> <wsdl:operation name="sayHello"> <wsdl:input message="impl:sayHelloRequest" name="sayHelloRequest"/> <wsdl:output message="impl:sayHelloResponse" name="sayHelloResponse"/> </wsdl:operation> </wsdl:portType> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body> <ns1:getPrice xmlns:ns1="urn:xmethods-BNPriceCheck" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <isbn xsi:type="xsd:string">0385503954</isbn> </ns1:getPrice> </SOAP-ENV:Body> </SOAP-ENV:Envelope> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <ns1:getPriceResponse xmlns:ns1="urn:xmethods-BNPriceCheck" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <return xsi:type="xsd:float">14.65</return> </ns1:getPriceResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
$##! E&/
"0##"/$
%"$."$$#! E& "$.7#/5
6<,*6<! ,/+
6!! !E&
%(
68
!"
E&2!!"6(7
6<,
446
(#"
42
4!3,,( 7
%(
6(7!!##"
exAppObj = new ExApp("example.com:1234") exAppObj.getUser() 6<,
http://example.com/users/ http://example.com/users/{user} http://example.com/findUserForm http://example.com/locations/ http://example.com/locations/{location} http://example.com/findLocationForm
Resource("http://example.com/users/001") userResource.delete()
#8
6!/8 6!
(. " 6.#!
(3( 4/R$R /
7"!L"
0 .Q!@/R$R*Q+
4;<,8 (,!#""
(
+ !5$"/$ X 710#")5"//
!E&/
+ ""//!$" X 7!!$
3,&
+ 7""0!$ X M"!""!
""L"/5"
32"
)E& 7")$!E&
/E&*+Y Q!@>F!G>V Q!:@>F/GQ#2G/F?/G>V Q!:@>F"GQ#2G"F?"G>V Q!:@>F!GQ#2G!F?!G>V Q!:@>FGQ#2GF?G>V Q!:@>F?!G>V Q!V Z
F!G F/GF?/G F"G-F?"G F!G!F?!G FG-IF?G F?!G
>#!.?? :#:#$:"?W?"",E&:!#! >V