Previous section   Next section
Package javax.xml.rpc.encoding

JAX-RPC 1.0; JWSDP 1.0, J2EE 1.4

The javax.xml.rpc.encoding package contains the classes and interfaces that form the portable part of the serialization framework used to convert between Java language types and XML messages. Although the rules for mapping between these two representations are well-defined by the JAX-RPC specification, only a minimal interface to the serialization framework is defined, leaving most of the details to be determined by vendors that implement the specification. This has two consequences:

As a result, this book does not describe how to write custom serializers, and this chapter documents only the minimal public API.

The XMLType class defines constants that represent various XML Schema and SOAP data types. This class is probably the only one in this package that application developers will be likely to use. The TypeMappingRegistry and TypeMapping interfaces provide groupings of serializers for specific XML data types using one or more encoding schemes. The serializers themselves implement the Serializer and Deserializer interfaces, which, at least in the current version of the specification, are marker interfaces that define no methods. Serializers are obtained from a SerializerFactory or a DeserializerFactory, and use instances of the SerializationContext and DeserializationContext interfaces to maintain state during the serialization or deserialization of a message.

Interfaces

public interface DeserializationContext;
public interface Deserializer extends Serializable;
public interface DeserializerFactory extends Serializable;
public interface SerializationContext;
public interface Serializer extends Serializable;
public interface SerializerFactory extends Serializable;
public interface TypeMapping;
public interface TypeMappingRegistry extends Serializable;

Classes

public class XMLType;

  Previous section   Next section