Constants.XSD_DATE),
true);
// Mapping for xsd:time. Map to Axis type Time
myRegister(Constants.XSD_TIME, org.apache.axis.types.Time.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.Time.class,
Constants.XSD_TIME),
new SimpleDeserializerFactory(org.apache.axis.types.Time.class,
Constants.XSD_TIME),
true);
// These are the g* types (gYearMonth, etc) which map to Axis types
myRegister(Constants.XSD_YEARMONTH, org.apache.axis.types.YearMonth.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.YearMonth.class,
Constants.XSD_YEARMONTH),
new SimpleDeserializerFactory(org.apache.axis.types.YearMonth.class,
Constants.XSD_YEARMONTH),
true);
myRegister(Constants.XSD_YEAR, org.apache.axis.types.Year.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.Year.class,
Constants.XSD_YEAR),
new SimpleDeserializerFactory(org.apache.axis.types.Year.class,
Constants.XSD_YEAR),
true);
myRegister(Constants.XSD_MONTH, org.apache.axis.types.Month.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.Month.class,
Constants.XSD_MONTH),
new SimpleDeserializerFactory(org.apache.axis.types.Month.class,
Constants.XSD_MONTH),
true);
myRegister(Constants.XSD_DAY, org.apache.axis.types.Day.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.Day.class,
Constants.XSD_YEARMONTH),
new SimpleDeserializerFactory(org.apache.axis.types.Day.class,
Constants.XSD_YEARMONTH),
true);
myRegister(Constants.XSD_MONTHDAY, org.apache.axis.types.MonthDay.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.MonthDay.class,
Constants.XSD_MONTHDAY),
new SimpleDeserializerFactory(org.apache.axis.types.MonthDay.class,
Constants.XSD_MONTHDAY),
true);
// Serialize all extensions of Map to SOAP_MAP
// The SOAP_MAP will be deserialized into a HashMap by default.
myRegister(Constants.SOAP_MAP, java.util.HashMap.class,
new MapSerializerFactory(java.util.Map.class,
Constants.SOAP_MAP),
new MapDeserializerFactory(java.util.HashMap.class,
Constants.SOAP_MAP),
false);
myRegister(Constants.SOAP_MAP, java.util.Hashtable.class,
new MapSerializerFactory(java.util.Hashtable.class,
Constants.SOAP_MAP),
null, // Make sure not to override the deser mapping
false);
myRegister(Constants.SOAP_MAP, java.util.Map.class,
new MapSerializerFactory(java.util.Map.class,
Constants.SOAP_MAP),
null, // Make sure not to override the deser mapping
false);
// Use the Element Serializeration for elements
myRegister(Constants.SOAP_ELEMENT, org.w3c.dom.Element.class,
new ElementSerializerFactory(),
new ElementDeserializerFactory(), false);
myRegister(Constants.SOAP_VECTOR, java.util.Vector.class,
new VectorSerializerFactory(java.util.Vector.class,
Constants.SOAP_VECTOR),
new VectorDeserializerFactory(java.util.Vector.class,
Constants.SOAP_VECTOR),
false);
// Register all the supported MIME types
// (note that MIME_PLAINTEXT was registered near the top)
if (JavaUtils.isAttachmentSupported()) {
myRegister(Constants.MIME_IMAGE, java.awt.Image.class,
new JAFDataHandlerSerializerFactory(
java.awt.Image.class,
Constants.MIME_IMAGE),
new JAFDataHandlerDeserializerFactory(
java.awt.Image.class,
Constants.MIME_IMAGE), false);
myRegister(Constants.MIME_MULTIPART, javax.mail.internet.MimeMultipart.class,
new JAFDataHandlerSerializerFactory(
javax.mail.internet.MimeMultipart.class,
Constants.MIME_MULTIPART),
new JAFDataHandlerDeserializerFactory(
javax.mail.internet.MimeMultipart.class,
Constants.MIME_MULTIPART), false);
myRegister(Constants.MIME_SOURCE, javax.xml.transform.Source.class,
new JAFDataHandlerSerializerFactory(
javax.xml.transform.Source.class,
Constants.MIME_SOURCE),
new JAFDataHandlerDeserializerFactory(
javax.xml.transform.Source.class,
Constants.MIME_SOURCE), false);
myRegister(Constants.MIME_DATA_HANDLER, javax.activation.DataHandler.class,
new JAFDataHandlerSerializerFactory(),
new JAFDataHandlerDeserializerFactory(), false);
}
// xsd:token
myRegister(Constants.XSD_TOKEN, org.apache.axis.types.Token.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.Token.class,
Constants.XSD_TOKEN),
new SimpleDeserializerFactory(org.apache.axis.types.Token.class,
Constants.XSD_TOKEN),
true);
// a xsd:normalizedString
myRegister(Constants.XSD_NORMALIZEDSTRING, org.apache.axis.types.NormalizedString.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.NormalizedString.class,
Constants.XSD_NORMALIZEDSTRING),
new SimpleDeserializerFactory(org.apache.axis.types.NormalizedString.class,
Constants.XSD_NORMALIZEDSTRING),
true);
// a xsd:unsignedLong
myRegister(Constants.XSD_UNSIGNEDLONG, org.apache.axis.types.UnsignedLong.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.UnsignedLong.class,
Constants.XSD_UNSIGNEDLONG),
new SimpleDeserializerFactory(org.apache.axis.types.UnsignedLong.class,
Constants.XSD_UNSIGNEDLONG),
true);
// a xsd:unsignedInt
myRegister(Constants.XSD_UNSIGNEDINT, org.apache.axis.types.UnsignedInt.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.UnsignedInt.class,
Constants.XSD_UNSIGNEDINT),
new SimpleDeserializerFactory(org.apache.axis.types.UnsignedInt.class,
Constants.XSD_UNSIGNEDINT),
true);
// a xsd:unsignedShort
myRegister(Constants.XSD_UNSIGNEDSHORT, org.apache.axis.types.UnsignedShort.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.UnsignedShort.class,
Constants.XSD_UNSIGNEDSHORT),
new SimpleDeserializerFactory(org.apache.axis.types.UnsignedShort.class,
Constants.XSD_UNSIGNEDSHORT),
true);
// a xsd:unsignedByte
myRegister(Constants.XSD_UNSIGNEDBYTE, org.apache.axis.types.UnsignedByte.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.UnsignedByte.class,
Constants.XSD_UNSIGNEDBYTE),
new SimpleDeserializerFactory(org.apache.axis.types.UnsignedByte.class,
Constants.XSD_UNSIGNEDBYTE),
true);
// a xsd:nonNegativeInteger
myRegister(Constants.XSD_NONNEGATIVEINTEGER, org.apache.axis.types.NonNegativeInteger.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.NonNegativeInteger.class,
Constants.XSD_NONNEGATIVEINTEGER),
new SimpleDeserializerFactory(org.apache.axis.types.NonNegativeInteger.class,
Constants.XSD_NONNEGATIVEINTEGER),
true);
// a xsd:Name
myRegister(Constants.XSD_NAME, org.apache.axis.types.Name.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.Name.class,
Constants.XSD_NAME),
new SimpleDeserializerFactory(org.apache.axis.types.Name.class,
Constants.XSD_NAME),
true);
// a xsd:NCName
myRegister(Constants.XSD_NCNAME, org.apache.axis.types.NCName.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.NCName.class,
Constants.XSD_NCNAME),
new SimpleDeserializerFactory(org.apache.axis.types.NCName.class,
Constants.XSD_NCNAME),
true);
// a xsd:NmToken
myRegister(Constants.XSD_NMTOKEN, org.apache.axis.types.NMToken.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.NMToken.class,
Constants.XSD_NMTOKEN),
new SimpleDeserializerFactory(org.apache.axis.types.NMToken.class,
Constants.XSD_NMTOKEN),
true);
// a xsd:Duration
myRegister(Constants.XSD_DURATION, org.apache.axis.types.Duration.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.Duration.class,
Constants.XSD_DURATION),
new SimpleDeserializerFactory(org.apache.axis.types.Duration.class,
Constants.XSD_DURATION),
true);
// a xsd:anyURI
myRegister(Constants.XSD_ANYURI, org.apache.axis.types.URI.class,
new SimplePrimitiveSerializerFactory(org.apache.axis.types.URI.class,
Constants.XSD_ANYURI),
new SimpleDeserializerFactory(org.apache.axis.types.URI.class,
Constants.XSD_ANYURI),
true);