XFireHome M5M6-SNAPSHOTDevelopersDeveloper Space |
OverviewXFire uses TypeMappings to determine how to serialize Java types to XML. The org.codehaus.xfire.type.basic package shows some of the simple types that are available. You are course free to create your own as well. The TypeMappingRegistry manages TypeMappings. Often there is a TypeMapping for each service which contains information on how to serialize the Types for that particular service. Register a TypeOnce you've created your service you can create register a new Type: service.getTypeMapping().register(YourObject.class, QName("http://namespace", "name"), new BeanType());
This would serialize the class YourObject.class with the BeanType class. The QName above is the XML Schema type. Controlling Bean SerializationSerializing Collections |