You should run this example from %AXIS_HOME%, where is AXIS_HOME is the install directory. You should add the directory which contains samples subdir(ie., %AXIS_HOME) in the CLASSPATH. If you see the TestClient.java, the service URL points to apache public axis server which runs this service. For running this sample through a proxy, you shuld run from %AXIS_HOME% as follows : java -Dhttp.proxyHost=hostName -Dhttp.proxyPort=portNumber samples.userguide.example1.TestClient I think the service is not available now as the URL is moved permanantly to some other location. You'll get the exception saying : (301)Moved Permanently Hope this helps.
Regards, Arul Emma Johansson wrote: > Thanx, > > but then I don't understand why I can't run the client. > This is what happens: > > % java samples.userguide.example1.TestClient > Exception in thread "main" java.lang.NoClassDefFoundError: > samples/userguide/example1/TestClient > % > > Must I know where the server is placed? > Do I have to place it in some special directory? > > Same thing with the deployment descriptor, must it be in some special directory? >Else why > doesn't the command to deploy it work? > ( I'm using jakarta-tomcat-4.1.12 ) > > /Emma > > Reinhard Moser wrote: > > > Hi Emma, > > > > Emma Johansson wrote: > > > Hi! > > > > > > I'm following the installation instruction at > > > > > > >http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/install.html#deploy > > > > > > Every step up till Step 5 is OK, but I don't understand Step 6: > > > deploying the web services where it stands > > > > > > Do I have to create a deployment descriptor to the TestClient in > > > example1 (samples/userguide/example1/TestClient.java)? If so, please > > > show me how I should do? > > > > For example 1 you don't need a deployment descriptor. For the examples > > needing a deployment descriptor a <filename>.wsdd (usually deploy.wsdd) > > is located in the directory. Example1 is a simple echo service on the > > public Axis server at Apache (See user-guide). > > > > > Is deploy.wsdd my deployment descriptor? In apache soap it was a xml > > > file... > > > > > > / Emma > > > > Reinhard
