Practical Use of Web Services

Thus far, I've given you a set of abstract reasons why Web services are an attractive idea. But unless you've designed many Web applications or struggled with application integration issues, these reasons may not strike a chord. Let me provide a more practical motivation.

At various points in the different projects, you may have found yourself wanting to incorporate data from another Web site directly into your Web application. Assuming there are no ethical problems (i.e., you're not stealing someone else's copyrighted content), the process is pretty simple. It doesn't take more than a few lines of Java in your EJB or servlet to download a remote Web page and repackage selected parts of it for distribution to your ...

Get Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.