...
Such a call might look like:
Code Block |
---|
DataReader<XMLStreamReader> reader = binding.createReader(XMLStreamReader.class);
|
Please read the javadoc for these interfaces, as it has a reasonably complete explanation of their contracts.
Getting Set Up
If you've read the reader and writer interfaces, you've seen that these objects are required to take XML and produce Java object, and vica versa. In general, data bindings need to obtain information about the service in order to implement their mapping. Data bindings obtain this information from the CXF service model in their initialize methods.