Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Web services with ServiceMix and CXF

This tutorial teaches you excerptINLINE

how you can do WSDL CXF service for ServiceMix

Info
titleSuggestions for improvements
  • construct a specific usecase (for example to retrieve information about a person etc.)
  • tell the user what will be created in this tutorial and explain CXF -> Webservice relation)
  • better specification of the requirements for this tutorial
  • let the user create a project folder somewhere and only work there -> not in SMX_HOME etc.
  • use the servicemix-project-root archetype for creating the project
  • use smx-arch to create the SU's and SA's and explain what is generated there and what it is used for
  • don't copy source code around ... this is not needed if the project is set up correctly
  • optional: graphical tool (eclipse?) to generate a wsdl ?
  • try to not use headlines like 'Creating our second SU' as it tells the user nothing
  • explain how the source code is generated from the wsdl file
  • add a description how to deploy the SA to smx. Maybe some people can't remember (wink)
  • check if the test html page really works for both Linux and Windows
  • add some kind of conclusion to the end of the tutorial maybe also with some tipps how to do further

Prerequisites

  • basic knowledges about deployment services in ServiceMix

Goals of the document

  • WSDL CXF service for ServiceMix

Contents

Children Display
excerpttrue
excerptTypesimple

Start this tutorial (← 1.01 Creating the Maven project)

use the CXF components for building a new web service in ServiceMix.

Goals of the document

This tutorial shows you how to create a new web service using the servicemix-cxf-se JBI component. You will also learn how to expose this web service to the outside world over HTTP/SOAP with the servicemix-cxf-bc. The web service we will create is a very simple greeter application: if a client sends a user name in the request, the service will respond with a friendly greeting message.

Apache CXF

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 (e.g. SOAP, XML/HTTP, RESTful HTTP) and transports (e.g. HTTP, JMS or JBI). You can also use interceptors to easily add behavior to the services stack.

Goals

After this tutorial...

  • you can use Maven to develop JBI service units and service assemblies
  • you can use xbean.xml files to configure the ServiceMix CXF components
  • you know how to use a WSDL file to define your web service
  • you know how to implement web services using Java classes

Prerequisites

Before starting this tutorial, you should...

  • be able to use ServiceMix (start/stop the container, deploy service assemblies, ...) (→ tutorial 1)
  • know how to use the Maven archetypes and JBI plugin to build and deploy your projects (→ tutorial 2)
  • know how to develop Java classes and build them using Maven
  • have a basic knowledge about web services (e.g. WSDL, SOAP, ...)

Contents

...

Start this tutorial



...