Hi all,

After having searched for a long time on the internet, and after having tried everything I thought possible to try, you are the only help left I can turn to. I hope you will be able to help me, as I am getting quite desperate...

I am using Axis 1.1, my server is Tomcat 4.1.29. The variable AXIS_HOME is correctly defined.

So, here is my problem: I am trying to use the AdminClient from inside my own code. That is, I do not use it by invoking it from the command line, but I use an instance of the AdminClient class. The code is the following:

==========

AdminClient adminClient = new AdminClient();

     String[] args = new String[4];
     args[0] = "-lhttp://127.0.0.1";;
     args[1] = "-p8888";
     args[2] = "-s/axis/services/AdminService";
     args[3] = rootDir + "\\deploy.wsdd";

     for (int i=0; i<args.length; i++)
       System.out.println("arg "+i+": "+args[i]);

String process = adminClient.process(args);

==========

Of course, the variable "rootDir" is defined prior to this code and contains the path to the "deploy.wsdd" file.

When I try to run this code, I get the following error:

==========

AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (301)Moved Permanently
faultActor:
faultNode:
faultDetail:
       {}string: return code:  301
&lt;HTML&gt;
&lt;HEAD&gt;&lt;TITLE&gt;Redirection&lt;/TITLE&gt;&lt;/HEAD&gt;
&lt;BODY&gt;&lt;H1&gt;Redirect&lt;/H1&gt;&lt;/BODY&gt;


(301)Moved Permanently
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:1672)
at org.apache.axis.client.AdminClient.process(AdminClient.java:355)
at org.apache.axis.client.AdminClient.process(AdminClient.java:334)
at org.apache.axis.client.AdminClient.process(AdminClient.java:341)
at org.apache.axis.client.AdminClient.process(AdminClient.java:292)
... continued ...


==========


But when I go to the page http://127.0.0.1:8888/axis/services/AdminService, I get the message



========== AdminService

Hi there, this is an AXIS service!

Perhaps there will be a form for invoking the service here...

==========

And of course, when I use the AdminClient from the command line (with the same options), everything goes well...
Do any of you know why I always get this "(301) Moved Permanently" error?


thanks a lot,

Jacques




Reply via email to