On Wednesday 31 March 2010 6:59:27 pm Coder One wrote:
> Hello,
> 
> On the server side, below is my inheritance hierarchy.  I've been trying
> various combinations of implement/extend and WebService/WebMethod, but all
> functions from MyService and SomeService are manifested in a single WSDL
> as if all the functions were defined in "MyService".  The idea is to get a
> WSDL to re-create the server-side hierarchy on the client side.  Is that
> possible? 

Not really as JAX-WS doesn't really allow it.   Technically, WSDL 2.0 wouldn't 
allow it either (all endpoints in the service must implement the same 
interface), not that we support WSDL 2.0.  


Basically, with JAX-WS, the @WebService annotation only allows a single 
interface to be set for an endpointInterface.   Even if you don't specify the 
@WebService annotation, spec dictates that we kind of "default" it in.

I've kind of "faked" it kind of by making the Impl abstract and then having 
two subclasses with different @WebService annotations.   That results in two 
wsdl docs though as you would really have two separate services deployed.


Dan


> I think WCF may actually support this feature.
> 
> Thanks...
> 
> Option A
> 
> public interface MyService extends SomeService
> 
> public MyServiceImpl implements MyService
> 
> Option B
> 
> public interface MyService  
> public MyServiceImpl implements MyService, SomeService

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to