could you please show me, how you are doing that ?


Which one that you would like me to show? How I run the Admin locally in the WEB-INF? Or the way I run the AdminClient?

For the Admin, first I copy all class files for the webservice into the class folder inside WEB-INF. Next, copy the the deploy.wsdd generated by the Wsdl2Java to WEB-INF. Next, I run this bat file under WEB-INF in the windows environment:

@echo off
set APATH="."
set CPATH=.;"%APATH%\lib\axis.jar";"%APATH%\lib\wsdl4j.jar";%APATH%\lib\commons-logging.jar;%APATH%\lib\log4j-1.2.8.jar;%APATH%\lib\commons-discovery.jar;%APATH%\lib\jaxrpc.jar;%APATH%\lib;%APATH%\lib\saaj.jar;%APATH%\lib\activation.jar;%APATH%\lib\mail.jar
c:\j2sdk1.4.0\bin\java -classpath %CPATH% org.apache.axis.utils.Admin server <mydeployfile>.wsdd


For the AdminClient, I make sure that the webserver that runs Axis's webservice is running. Next, copy all webservice class files into the classes folder inside the WEB-INF. Next, a folder where I have the generated wsdd file and all my class files, I call this bat file under windows environment:

@echo off
set APATH="C:\Tomcat\webapps\axis\WEB-INF"
set CPATH=.;"%APATH%\lib\axis.jar";"%APATH%\lib\wsdl4j.jar";%APATH%\lib\commons-logging.jar;%APATH%\lib\log4j-1.2.8.jar;%APATH%\lib\commons-discovery.jar;%APATH%\lib\jaxrpc.jar;%APATH%\lib;%APATH%\lib\saaj.jar;%APATH%\lib\activation.jar;%APATH%\lib\mail.jar
c:\j2sdk1.4.0\bin\java -classpath %CPATH% org.apache.axis.client.AdminClient <mydeploy file>.wsdd


Please note that the 2nd method, using AdminClient did not work for me. The first method works with the attacment example shipped with axis, but also failed with my case. I manually copied the <service> </service> text inside my wsdd file and pasted into the config file inside WEB-INF and it all works now, although it's not be best way to do it.






Reply via email to