### XFire Home Bug/Issue Reporting Download FAQ Get Involved License News Stack Comparison Support User's Guide XFire Team ### M5 Javadocs Reports ### M6-SNAPSHOT Javadocs Reports ### Developers Developer Space CVS Building Architecture Interesting Projects Release Process | ## Overview XFire 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 Type Once 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 Serialization ## Serializing Collections