CXF WS-Discovery Example

CXF WS-Discovery Example explain about configuring WS-Discovery service with Apache CXF.

Web Services Dynamic Discovery (WS-Discovery) is a protocol, which enable dynamic discovery of services available on the local network. By default, WS-Discovery uses a UDP based multicast transport to announce new services

Apache CXF  is a free and open source project, and a fully featured Webservice framework. It helps you building webservices using different front-end API's, like as JAX-RS and JAX-WS.

WS-Discovery is available from Apache CXF 2.7.x onwards.


Required Libraries

You need to download

  1. JDK 6
  2. Eclipse 3.7
  3. CXF-2.7.12
  4. Tomcat 7

Following jar must be in ClassPath

  1. asm-3.3.1.jar
  2. commons-logging-1.1.1.jar
  3. cxf-2.7.12.jar
  4. cxf-services-ws-discovery-api-2.7.12.jar
  5. cxf-services-ws-discovery-service-2.7.12.jar
  6. httpasyncclient-4.0-beta3.jar
  7. httpclient-4.2.5.jar
  8. httpcore-4.2.4.jar
  9. httpcore-nio-4.2.4.jar
  10. jetty-continuation-8.1.15.v20140411.jar
  11. jetty-http-8.1.15.v20140411.jar
  12. jetty-io-8.1.15.v20140411.jar
  13. jetty-server-8.1.15.v20140411.jar
  14. jetty-util-8.1.15.v20140411.jar
  15. mina-core-2.0.7.jar
  16. neethi-3.0.3.jar
  17. slf4j-api-1.7.7.jar
  18. slf4j-jdk14-1.7.7.jar
  19. stax2-api-3.1.4.jar
  20. woodstox-core-asl-4.4.0.jar
  21. wsdl4j-1.6.3.jar
  22. xml-resolver-1.2.jar
  23. xmlschema-core-2.1.0.jar

CXF WS-Discovery Example

I am creating a sample web service project that pass Student object and return with some changes on that object. The service is using simple POJO (Plain Old Java Object) bean.

Firstly create a Dynamic Web Project (File->New->Dynamic Web Project) named "CXFTutorial" according to following screenshot

CXF WS-Discovery Example CXF WS-Discovery Example

1 2 3 Next

5 Responses to "CXF WS-Discovery Example"
  1. Anton 2014-06-03 19:02:57.0
  1. admin 2014-06-04 19:02:57.0
  1. Carson 2014-06-05 19:02:57.0
  1. Carson 2014-06-06 19:02:57.0
  1. Carson 2014-06-07 19:02:57.0

Your email address will not be published. Required fields are marked *