Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 26th, 2005, 08:16 AM
Authorized User
 
Join Date: Jul 2005
Location: , , .
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:59 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.