Sometimes you'll want to read/write your own custom types. This will give you direct access to the xml streams.
Writing a Type class
There are many reasons why you may want to write your own Type. Your java class may not map well to your xml. Or sometimes you'll want to return large amounts of data which you don't want loaded into memory. Here a couple steps to help you get going.
1. Return or receive some kind of class which gives a reference to the data
2. Create a org.codehaus.xfire.aegis.type.Type for ReferenceToData
3. Register the ReferenceToDataType
Configuration via services.xml
and a bean which registers your types:


