U6 - M1 - L3 - SOAP, REST Web Services and Technology Trends - Annotated - Tagged
U6 - M1 - L3 - SOAP, REST Web Services and Technology Trends - Annotated - Tagged
Technology Trends
SOAP REST
parameter in . in
types .
types types
Method return .
message message
type
out out
types types
Web Services are Wrapped Classes/Objects
Functionalities provided by
the Math SOAP service
include:
piValue: returns the PI
value when the method is
called; no parameter for
this method
absValue: take an integer
value as a parameter and
returns the absolute value
of the parameter
SOAP Web Service Example: Math SOAP Service
Functionalities provided by
the Math SOAP service
include:
computeStat: takes a
string as parameters,
determines uppercase
letter, lowercase letters
and digits in the string and
return analysis as a
results object
WSDL Interface of the Math SOAP Service
Using Math SOAP Service
Client Code
mathRef.MathServiceClient mc = new
mathRef.MathServiceClient();
int number = -10
int result = mc.absValue(number);
http://
webstrar99.fulton.asu.edu/
page0/MathService.svc?wsdl
Anatomy of a REST Web Service
| Even if the REST services has
a WSDL description, it will be
used by clients to invoke the
web service.
| Web service method
invocations are done as URL-
based method calls.
REST Web Service Invocation
| REST uses the HTTP methods
such as GET, POST, PUT,
DELETE, etc. when
communicating with the
client.
/piValue
/add2? x= & y=
/absValue? x=
/computeStat?str=
Source: trends.google.com
Advancement in REST API’s
Source: trends.google.com
Summary