Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{scrollbar}

Writing a webservice for ServiceMix using Apache CXF

This tutorial teaches you

Excerpt

how you can do a webservice for ServiceMix using the CXF framework.

Goals of the document

This example shows how to expose a webservice with servicemix-cxf-se/bc, starting from the
pure WSDL and exposing it via servicemix-cxf-bc.

Description of webservice

This webservice is a simple hello-user example. The client will send a user name and the webservice will reply with a greeting.

Apache CXF Framework

The Apache CXF framework is an open source framework which helps you develop webservices using frontend programming APIs like JAX-WS.
These services can communicate over many protocols. For example: SOAP, XML/HTTP, RESTful HTTP. They can communicate over many transports.
For example HTTP, JMS or JBI.

Goals

  • using Maven to develop JBI service units and service assembly
  • using xbean.xml files to configure routes and services in ServiceMix
  • writing WSDL file to define our webservice
  • writing a java class to implement our webservice

After finishing this tutorial you have a working webservice. Feel free to play around with it and adding improvements.

Prerequisites

  • basic knowledges about development in Java
  • basic knowledges about web services (especialy about WSDL)
  • basic knowledges about deployment services in ServiceMix

Contents

Children Display
excerpttrue
excerptTypesimple

Start this tutorial (← 1.01 Creating the Maven project)



Wiki Markup
{scrollbar}