Fix JavaWS example to use secure defaults.
Merge pull request #3450 from wsargent/fix_insecure_ws_example

[doc] [2.3.x] Fix JavaWS example to use secure defaults.