Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2005, 08:16 AM
Authorized User
 
Join Date: Jul 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Axis web service from .NET client Koushik .NET Web Services 4 April 2nd, 2010 09:16 PM
java axis web service deb_net J2EE 2 June 12th, 2007 12:40 AM
Calling Axis Web Service from VB.NET - XML distort Koushik VB.NET 0 October 28th, 2006 07:32 AM
Consuming Axis Web Service from .NET - Problem Koushik .NET Web Services 0 October 28th, 2006 07:29 AM
Calling Axis web service from .Net - XML Exchange Koushik .NET Web Services 0 October 23rd, 2006 11:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.