I want to upgrade my jaxws to 2.2 (jdk1.6 comes bundled with jaxws 2.1). My jdk is (I did not install public jre):
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode)
$JAVA_HOME/lib/endorsed (or $JDK_HOME/jre/lib/endorsed)
JAX-WS RI 2.1.6 in JDK 6
The wsimport and wsgen included in the jre are located in the jre/bin directory as exe and if you still call it from command line, it will still run the Jax-WS 2.1 implementation.
To update to Jax-WS 2.2, you need to download the relevant JAX-WS 2.2.X RI from the jaxws website.
You need to extract the contents onto your computer.
You also need to copy the jaxws-api.jar and jaxb-api.jar into the endorsed directory (as per your original description)
HOWEVER, instead of using wsgen.exe or wsimport.exe (as applicable to your project), you now need to use the one provided in the jax-ws 2.2 update/download.
In the jaxws-ri directory that you've extracted from your JAX-WS 2.2 download, you will see a bin directory and 4 files (wsgen.bat, wsgen.sh, wsimport.bat, wsimport.sh) and these are the ones which you need to run instead.
To run them, you have to set up the JAXWS_HOME environment variable (see the wsgen/wsimport.bat/sh files for details).
That should now allow you to run JAX-WS 2.2 with JDK 1.6