I am utilizing JDK 1.6 on Ubuntu. Executed web administrations utilizing JAX-WS 2.2.6 yet when attempted to create customer intermediary code utilizing "wsimport" utility of JDK. It fizzled, in light of the fact that the "wsimport" utility in JDK 1.6 is more established (presumably JAX-WS 2.1.6 or a prior discharge 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:
JAXWS_HOME=/opt/jaxws-ri2.2.6
JAVA_ENDORSED_DIRS=/opt/endorsedlibs
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/wsimport.sh -Xendorsed -s . http://localhost:8181/myproject/webservices/Alpha?wsdl
It generates the client proxy code and put into current folder i.e. src.
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:
JAXWS_HOME=/opt/jaxws-ri2.2.6
JAVA_ENDORSED_DIRS=/opt/endorsedlibs
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/wsimport.sh -Xendorsed -s . http://localhost:8181/myproject/webservices/Alpha?wsdl
It generates the client proxy code and put into current folder i.e. src.
No comments:
Post a Comment