This section contains two examples of custom marshallers. The first example shows a SimpleMarshal
for Calendar, and highlights the use of QName mapping to map Calendar to xsd:dateTime
, a mapping defined in JAX-RPC. The second example shows a ComplexMarshal
for Properties, and also illustrates the use of an intermediate class and the use of QName mapping to return a non imported class.
Parent topic: Custom serialization (marshalling)