Added code from Java Web Services: Up and Running, 2e, ch4