LibraryLink ToToggle FramesPrintFeedback

Implementing the Service Provider

You generate the implementation class used to build your service provider with wsdl2java's -impl flag.


If your service's contract includes any custom types defined in XML Schema, you must ensure that the classes for the types are generated and available.

For more information on using wsdl2java see wsdl2java in Web Service Tool Reference.

The implementation code consists of two files:

  • — The service interface(SEI) for the service.

  • — The class you will use to implement the operations defined by the service.

To provide the business logic for your service's operations complete the stub methods in You usually use standard Java to implement the business logic. If your service uses custom XML Schema types, you must use the generated classes for each type to manipulate them. There are also some Apache CXF specific APIs that can be used to access some advanced features.

For example, an implementation class for the service defined in Example 3.1 may look like Example 4.2. Only the code portions highlighted in bold must be inserted by the programmer.