...
For more in depth information see the Hello World demos inside the distribution.
JAX-WS Proxy
TODO: Document Service class usage
Simple Frontend Client Proxy
The simple frontend provides a class called ClientProxyFactoryBean which creates a Java proxy with your service interface to talk to your service which was created with the simple frontend. For more information see the Simple Frontend documentation.
Dynamic Client
CXF includes a Client interface which allows you to invoke operations and pass parameters for those operations. For instance:
Code Block | ||||
---|---|---|---|---|
| ||||
Client client = ....; Object[] result = client.invoke("sayHi", "Dan"); |
There are two ways to create Clients at runtime. The first would be through the ClientFactoryBean and JaxWsClientFactoryBean classes. The second is through the DynamicClientFactory. The DynamicClientFactory goes the additional step of generating and compiling JAXB POJOs in the background for use at runtime via reflection. This is most useful when you're using a dynamic language such as Groovy with CXF.
More Information: Dynamic Clients