How to Generate JAX-WS Client Proxy Using Wsimport of JAX-WS 2.2.6 or later

I am using JDK 1.6 on Ubuntu. Implemented web services using JAX-WS 2.2.6 but when tried to generate client proxy code using "wsimport" utility of JDK. It failed, because the "wsimport" utility in JDK 1.6 is older (probably JAX-WS 2.1.6 or an earlier release ships with JDK 1.6)

So I used "wsimport" utility that comes with JAX-WS 2.2.6 RI. How? I defined two environmental variables like this, by putting into ~/.bashrc file:


In JAVA_ENDORSED, I pasted jaxws-api.jar and jaxb-api.jar
The JAXWS_HOME contains standard files/folders that comes with JAX-WS 2.2.6 Reference Implementation download bundle.

Here is how I generated client proxy code:
wsclient-project/src:~$> bash $JAXWS_HOME/bin/ -Xendorsed -s . http://localhost:8181/myproject/webservices/Alpha?wsdl

It generates the client proxy code and put into current folder i.e. src.


  1. I am sharing an simple way to open blocked sites very easily when I want and any site I want to open without using any third party software because some time its hard to install any software due to restrictions now I can open any blocked site from computer by clicking

    Akinator UK proxy

  2. That is really nice and easy! My son would enjoy this!
    access Mp3lemon in UK


Post a Comment