28. Web Services in Java

A client is to me a mere unit, a factor in a problem.

—Sir Arthur Conan Doyle

They also serve who only stand and wait.

—John Milton

...if the simplest things of nature have a message that you understand, rejoice, for your soul is alive.

—Eleonora Duse

Protocol is everything.

—Francoise Giuliani

Objectives

In this chapter you will learn:

• What a web service is.

• How to publish and consume web services in NetBeans.

• How XML, JSON, XML-Based Simple Object Access Protocol (SOAP) and Representational State Transfer (REST) Architecture enable Java web services.

• How to create client desktop and web applications that consume web services.

• How to use session tracking in web services to maintain client state information. ...

Get Internet & World Wide Web: How to Program, Fifth Edition 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.