Java Reference
In-Depth Information
figure 10-16  
services. Again, take some time to go over all the code you've seen to make sure you understand
everything. If you're up for it, you can try some of the other web services offered at WebserviceX.
NET and see if you can get them to work with wsimport .
One aspect of SOAP you'll probably agree on is the fact that its services are not really “simple” at
all. They involve a wealth of protocols and message formats, involving terminology such as ports,
bindings, and endpoints. In enterprise environments, however, SOAP services remain very popular,
so it is helpful to know how to access them in the programs you write. In the next section, you'll
take a look at a simpler web service “standard,” which is not really a standard, but more like an
agreed‐upon method to access web sources using the infrastructure that's already in place to serve
websites to end users: HTTP.
accessing rest services
REST stands for “Representational State Transfer” and describes a simple, common methodol-
ogy for accessing ad hoc web services. In recent years, it has become the methodology of choice by
“modern” web companies to provide APIs to access their information.
Recall from the introduction that one of the biggest differences between REST and SOAP is that
REST is stateless and SOAP is stateful. However, as you've seen in the preceding section, since many
SOAP services do not track state (in fact, only complex SOAP services do), this is not really an issue
for most applications.
 
Search WWH ::




Custom Search