Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

An element name strategy is used for two purposes. The first is to find a xml element name for a given object and soap action when marshalling the object into a SOAP message.
The second is to find an Exception class for a given soap fault name.

...

If you have generated the web service stub code with cxf-codegen or a similar tool then you probably will want to use the ServiceInterfaceStrategy.
In the case you have no annotated service interface you should use QNameStrategy or TypeNameStrategy.

...

For example the following uses a named DataFormat of soap which is configured with the package com.example.customerservice to initialize the JAXBContext.
The second parameter is the ElementNameStrategy. The route is able to marshal normal objects as well as exceptions.

...