XFire

Home
Bug/Issue Reporting
Download
FAQ
Get Involved
License
News
Performance
Stack Comparison
Support
Who uses XFire\?
XFire Team

Documentation

Javadocs
Reports
User's Guide
Release Notes

Quicklinks

Aegis Binding
Client
JAXB 2.0
JSR 181 Annotations
Spring

Developers

Developer Space
CVS
Building
Architecture
Interesting Projects
Roadmap
Release Process
JAX\-WS

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