You must be running the wsimport that comes with JAX-WS 2.1.x. For example NetBeans 6.0 installs JAX-WS 2.1. So even if you initially didn't install JAX-WS 2.1 some of the other tools may have. To use JAX-WS 2.1 from the command line in a JDK 6 environment: