Oh, and I forgot to say, I ran java org.apache.axis.client.AdminClient deploy.wsdd
First of course, and I tried restarting the tomcat server etc... Strangely, java org.apache.axis.client.AdminClient list doesn't give me any output, even though $CATALINA_HOME/webapps/axis/WEB-INF/server-config.wsdd Has the contents of my wsdd file, and lots of other stuff, in it. /Daniel On Wed, 2003-03-12 at 13:58, Daniel Elenius wrote: > Hi! > > I'm trying to deploy a simple "hello world" webapp with axis (1.1RC2) > and tomcat (4.1.18). I've managed to get the example webapps, like the > stock example, working, and happyaxis is happy, except that it says: > > XML Parser Location: Null > > I get a > > (500)Internal Server Error > > when I try to run my own service. I've really tried to understand this, > searched the mailing list archives etc, but I can't see what I'm doing > differently from the other examples that makes it not work. Can someone > tell me what I'm doing wrong? > > > My deploy.wsdd file looks like this: > > ------ > <deployment xmlns="http://xml.apache.org/axis/wsdd/" > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> > <service name="urn:HelloService2" provider="java:RPC" > > <parameter name="className" value="HelloService2"/> > <parameter name="allowedMethods" value="*"/> > </service> > </deployment> > ----- > > And I have copied HelloService2.class to > $CATALINA_HOME/webapps/axis/WEB-INF/classes > > The HelloService2.java file looks like this: > > ---- > import java.io.*; > import java.net.*; > import java.util.*; > > public class HelloService2 { > > private static int counter = 0; > > public static String sayHello( String message ) { > > System.out.println("In HelloService2:sayhello()"); > return "How is it going buddy! - " + message + " Called " + > ++counter + " times"; > > } > } > ---- > > And the client that tries to call it like this: > > ---- > import org.apache.axis.client.Call; > import org.apache.axis.client.Service; > import javax.xml.namespace.QName; > > public class HelloClientHTTP { > public static void main(String [] args) { > try { > > String endpoint = > "http://localhost:8080/axis/services/urn:HelloService2"; > > Service service = new Service(); > Call call = (Call) service.createCall(); > > call.setTargetEndpointAddress( new java.net.URL(endpoint) ); > > call.setOperationName(new QName("FunServices:HelloService", > "sayHello")); > > System.out.println("Trying to invoke SOAP service..."); > String res = (String)call.invoke(new Object[] { "Hey Axis server!" > } ); > System.out.println(res); > > } catch (Exception e) { > System.err.println(e.toString()); > } > } > } > ----
