The Artima Developer Community
Sponsored Link

Web Services Forum
Apache, Axis and JDK for web service problem

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eugene

Posts: 1
Nickname: solomon
Registered: Aug, 2005

Apache, Axis and JDK for web service problem Posted: Aug 26, 2005 4:57 AM
Reply to this message Reply
Advertisement
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

Topic: Gmail Invitations Previous Topic   Next Topic Topic: How to get integer values using jsp tag library

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use