Apache, Axis and JDK for web service problem



In my C:\xml-axis-10\samples\EightBall folder I have a file name
DeployEightBall.wsdd. The contents of this file is:

<deployment xmlns="http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
<service name="urn:EightBall" provider="java:RPC">
<parameter name="className" value="sample.EightBall.EightBall"/>
<parameter name="allowedMethods" value="getAnswer askQuestion"/>
</service>
</deployment>

I have also created a java class from the code bellow:

import java.util.Random;
import java.lang.Double;
import java.util.Date;

public class EightBall
{
static String answers[] = {"Yes.","Don't count on it."};

public static String getAnswer()
{
return askQuestion("");
}

public static String askQuestion(String question)
{
java.util.Random r = new Random
(new Date().getTime());
java.lang.Double d = new Double
((r.nextDouble()*20)-1);
return new String(answers[d.intValue()]);
}

public static void main(String args[])
{
System.out.println(getAnswer());
}
}

now what I did is I used the following command:

C:\xml-axis-10\samples\EightBall>java org.apache.axis.client.AdminClient
DeployEightBall.wsdd

It was successful.

Then I tried accessing this site:
http://localhost:8080/axis/servlet/AxisServlet

and the result show on the page is empty. No services was listed.

Then what I did was, I issued the following command:

C:\xml-axis-10\samples\EightBall>java org.apache.axis.client.AdminClient
unregister.wsdd

Then I tried accessing this site:
http://localhost:8080/axis/servlet/AxisServlet

and I saw a list of other services being listed.

How do I solve this problem?.

I am using:

xml-axis-10
j2sdk1.4.2_05
jakarta-tomcat-4.1.31

on my pc.

Your help is kindly appreciared.

Regards

Eugene


.