Register the SOAP encoding data types. This is split out into a
method so it can happen either before or after the XSD mappings.
// SOAP Encoded strings are treated as primitives.
// Everything else is not.
myRegisterSimple(Constants.SOAP_STRING, java.lang.String.class);
myRegisterSimple(Constants.SOAP_BOOLEAN, java.lang.Boolean.class);
myRegisterSimple(Constants.SOAP_DOUBLE, java.lang.Double.class);
myRegisterSimple(Constants.SOAP_FLOAT, java.lang.Float.class);
myRegisterSimple(Constants.SOAP_INT, java.lang.Integer.class);
myRegisterSimple(Constants.SOAP_INTEGER, java.math.BigInteger.class);
myRegisterSimple(Constants.SOAP_DECIMAL, java.math.BigDecimal.class);
myRegisterSimple(Constants.SOAP_LONG, java.lang.Long.class);
myRegisterSimple(Constants.SOAP_SHORT, java.lang.Short.class);
myRegisterSimple(Constants.SOAP_BYTE, java.lang.Byte.class);
myRegister(Constants.SOAP_BASE64, byte[].class,
new Base64SerializerFactory(byte[].class,
Constants.SOAP_BASE64),
new Base64DeserializerFactory(byte[].class,
Constants.SOAP_BASE64)
);
myRegister(Constants.SOAP_BASE64BINARY, byte[].class,
new Base64SerializerFactory(byte[].class,
Constants.SOAP_BASE64BINARY),
new Base64DeserializerFactory(byte[].class,
Constants.SOAP_BASE64BINARY)
);
myRegister(Constants.SOAP_ARRAY12, java.util.Collection.class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory()
);
myRegister(Constants.SOAP_ARRAY12, java.util.ArrayList.class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory()
);
myRegister(Constants.SOAP_ARRAY12, Object[].class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory()
);
myRegister(Constants.SOAP_ARRAY, java.util.ArrayList.class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory()
);
// All array objects automatically get associated with the SOAP_ARRAY.
// There is no way to do this with a hash table,
// so it is done directly in getTypeQName.
// Internally the runtime uses ArrayList objects to hold arrays...
// which is the reason that ArrayList is associated with SOAP_ARRAY.
// In addition, handle all objects that implement the List interface
// as a SOAP_ARRAY
myRegister(Constants.SOAP_ARRAY, java.util.Collection.class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory()
);
myRegister(Constants.SOAP_ARRAY, Object[].class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory()
);