I've been using cxf for a while now and everything is going well until I
tried to have a class implement two different web service interfaces.  For
example:

 

@WebService

public interface Foo {  .  }

 

@WebService

public interface Bar {  .  }

 

public class MyService implements Foo, Bar { .. }

 

I then tried to do something like the following:

 

EndpointImpl endpointImpl = (EndpointImpl) Endpoint.publish("foo",
myService);

endpointImpl.setImplementorClass(Foo.class);

endpointImpl.setBus(bus);

 

// now publish the same implementor but with a different ws interface

endpointImpl = (EndpointImpl) Endpoint.publish("bar", myService);

endpointImpl.setImplementorClass(Bar.class);

endpointImpl.setBus(bus);

 

However I always end up with the same service descriptor registered under
two names (the WSDL for Foo registered for both "/foo" and "/bar").  Is
there a way to tell cxf/jaxws to generate the wsdl from a specific interface
definitions instead of the implementor class?

 

-          will

 

Reply via email to