Show/Hide Toolbars

In a client application there are two key items to do:

Instantiate a client proxy and type cast the proxy with the Web Service client interface that corresponds to the entity type you pass as parameter. For example, if you use the entityName, Contact, then you'd cast the proxy as type ContactRepository.

Add the interceptor for SOAP security header to the client proxy.

Afterward you would use the client proxy to make Web Service request calls.

For more a more detailed example, see the Client Application Sample Code section of the Client Application Components (Java/Apache CXF) appendix.