Hi, After more digging and diffing, I realized that I misunderstood the deployment system.
I had placed a "server-config.wsdd" in my webapp's WEB-INF directory with a description of my service. This overrode the default one, which includes: <handler type="java:org.apache.axis.handlers.http.URLMapper" name="URLMapper"/> This handler (I think) is the bit that maps the URL to the right service. I have now placed a complete server-config.wsdd (based on the original default in the "work/" directory of Tomcat) in my WEB-INF directory, and everything works much better. (This is all caused because I didn't feel like adding axis.jar to my classpath environment variable, so I thought I'd try to outsmart the installation docs. Serves me right, although this alternate measure should be included in the docs. Is there something I can do to make that happen?) -Rob On Wednesday 12 May 2004 19:24, Rob Ewaschuk wrote: > Hi, > > I'm completely stumped on this problem. Short version: AxisServlet lists > my service and its methods, but I can't generate WSDL or use the methods > (via GET requests, anyway.) > > Long version: I've taken Axis and tried to retrofit it into an existing > application with several servlets. I copied things into my web.xml, > created a server-config.wsdd that lists my services, and copied over the > libraries. > > HappyAxis is happy. I'm running Tomcat 5.0.24, Java 1.4.2, Axis 1.0/1.1 > (tried both) on Debian Linux. > > If I load http://localhost:8080/mad/AxisServlet I get: > > --- > And now... Some Services > > * CPI (wsdl) > o getString > o doGet > o Hello > --- > > But if I click the wsdl link, it says: > --- > AXIS error > Could not generate WSDL! > --- > > Similarly, if I try http://localhost:8080/mad/services/CPI?method=Hello > It says (Axis 1.0, axis 1.1 is similar but less verbose): > --- > AXIS error > > Sorry, something seems to have gone wrong... here are the details: > Fault - The AXIS engine could not find a target service to invoke! > targetService is null > > AxisFault > faultCode: {http://xml.apache.org/axis/}Server.NoService > faultString: The AXIS engine could not find a target service to invoke! > targetService is null > faultActor: null > faultDetail: > stackTrace: AxisFault > faultCode: {http://xml.apache.org/axis/}Server.NoService > faultString: The AXIS engine could not find a target service to invoke! > targetService is null > faultActor: null > faultDetail: > > The AXIS engine could not find a target service to invoke! targetService > is null > at org.apache.axis.server.AxisServer.invoke(AxisServer.java:307) > at > org.apache.axis.transport.http.AxisServlet.invokeEndpointFromGet(AxisServ >let.java:476 ) > at > org.apache.axis.transport.http.AxisServlet.processMethodRequest(AxisServl >et.java:410) at > org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:289) > > [..more that I can deliver if it helps..] > --- > > My server-config.wsdd contains: > --- > <?xml version="1.0" encoding="UTF-8"?> > <deployment xmlns="http://xml.apache.org/axis/wsdd/" > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> > <service name="CPI" provider="java:RPC"> > <parameter name="className" value="<the classname is > here. It must > be correct, since Axis is finding the methods.>"/> > <parameter name="allowedMethods" value="*"/> > <parameter name="activateOnStartup" value="true" /> > </service> > > </deployment> > --- > > I can't figure out how Axis can find and list the service (and identify > its methods) but not be able to generate wsdl. I'm new to SOAP/Axis, but > not Java or Servlets. > > I imagine I did something moronic trying to fit Axis into an existing > app, but I can't figure out what it is. Several other people seem to > have had this problem without resolution. > > Any help is appreciated. > > Cheers, > Rob -- : Rob Ewaschuk : [EMAIL PROTECTED] : : www.rotuaari.net : rob.infinitepigeons.org : : U of Waterloo - CS/C&O (4B) : uwstudent.org : : U of Oulu, Finland - MediaTeam / Rotuaari :