On Apr 12, 2013, at 7:35 AM, Nitesh <[email protected]> wrote:

> Hi
> I have created three services from three different wsdls.
> e.g. 
> a.wsdl ----> A service
> b.wsdl ----> B service
> c.wsdl ---> C service
> I used wsdl2java to create java classes from given wsdls.
> I published service using jax-ws endpoints  and cxf attaches discovery
> module with each service.
> so any one from local intranet can access my service using ws-discovery.
> My requirement is that only A service should be discoverable on the local
> intranet and client can call other service from A service.
> In short, i want to make B and C service non discoverable using ws-discovery
> only A should remain discoverable but i want to publish all three service.
> is it possible?

Not easily with 2.7.4 right now, no.  :-(  I just added a property to the 
discovery service for 2.7.5 that will allow disabling the publishing of the 
service so tonights snapshots should allow it, but I'm not really seeing 
anything for 2.7.4 that would really work easily.  The only suggestion would be 
to remove the cxf-services-ws-discovery-service, create a subclass of 
org.apache.cxf.ws.discovery.listeners.WSDiscoveryServerListener that would 
filter on your requirements, and register that as an extension on the bus.   



-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to