Supporting new/custom message types with MessageBuilder/Formatter

Axis2 provides extended support for new or custom message types. This is done with using a extension point in the Axis2 architecture, called message builders and formatters. In Axis2 a builder is responsible of building the MessageContext by looking at the raw message transmitted and the formatter is responsible of the inverse of that, which is to serialize a MessageContext to the wire transfer format. Let's create a custom MessageBuilder/Formatter to add the support for a new message type.

Send your feedback or questions to: java-dev@axis.apache.org. ( Subscription details are available on the Axis2 site.) Kindly prefix subject with [Axis2].

Contents

New ContentType handling with a custom message builder and formatter

Let's write a simple builder and formatter to add the support for a new content type

Step1 : MessageBuilder implementation

Step2 : MessageFormatter implementation

Step3 : Register the builder and formatter with Axis2

Step4 : Packaging builder and formatter

Step5 : Testing the new ContentType with the echo service