Hi all,
I'm following the "A simple JAX-WS service" section from the overview,
piecing together bits from the "Servlet Transport" doc.
I'm not using Spring.

I've created a simple web service.  The class name is "BaseService".

I created a class "WebServicePublisher", which extends
CXFNonSpringServlet.  There's one method, the overridden loadBus
method.  That method has the following code:

  super.loadBus(servletConfig);
  Bus bus = this.getBus();
  BusFactory.setDefaultBus(bus);
  Endpoint.publish("BaseService", new BaseService());

In my web.xml, I added:

  <servlet-mapping>
    <servlet-name>WebServicePublisher</servlet-name>
    <url-pattern>/WSPub</url-pattern>
  </servlet-mapping>

When I start tomcat and navigate to /contextname/WSPub, I see a page
titled "CXF - Service list", which shows my the "BaseService" and the
public methods in that class.

Great so far.

However, there's a WSDL link, which I click on that, it goes to:
/contextname/BaseService?wsdl

Which gives me a 404 error.  And rightly so .. there's nothing in my
web.xml that configured that URL.

What am I missing?

-d

Reply via email to