Skip to main content

JAX-WS Providers

JAX-WS Providers allow you to create services which work at the message level - as opposed to the operation level as with annotated classes. The have a single operation "invoke" which receives either the message payload (i.e. the SOAP Body) or the whole message itself (i.e. the SOAP Envelope).

Here's a simple example:

@WebServiceProvider
public class HelloProvider {
   public Source invoke(Source request) {
      return ....;
   }
}

Services are publish via one of two means:

  • The JAX-WS standard Endpoint APIs

  • CXF's XML configuration format - i.e. <jaxws:endpoint ... />

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!