Declare a private field in your controller as the interface of the web service you want to communicate with, annotate the field as @Autowired, and call the desired methods on the field.
See attachment for details.
See Spring/CXF WS server config, Spring/CXF WS client config and Spring/CXF WS service for further details.
Annotate your interface as @WebService, your class as @WebService with a name reflecting the address of the jaxws endpoint in your server config and an endpointInterface specifying the interface, and your methods as @WebMethod with an operationName reflecting the name of the annotated method.
See attachment for details.
See Spring/CXF WS server config, Spring/CXF WS client config and Spring/CXF WS controller for further details.
Write a jaxws client with a unique Spring identifier, an interface specifying the class which is exposed as a web service and an address at which the web service is published.
See attachment for details.
See Spring/CXF WS server config, Spring/CXF WS service and Spring/CXF WS controller for further details.
Write a jaxws endpoint with a unique Spring identifier, a class specified as implementor and an address at which the implementing class will be published.
See attachment for details.
See Spring/CXF WS client config, Spring/CXF WS service and Spring/CXF WS controller for further details.