registry.deployItem(services[n]);
}
for (int n = 0; n < mappings.length; n++) {
WSDDTypeMapping mapping = mappings[n];
TypeMappingRegistry tmr = registry.getTypeMappingRegistry(mapping.getEncodingStyle());
if (tmr == null) {
tmr = new TypeMappingRegistry();
registry.addTypeMappingRegistry(mapping.getEncodingStyle(), tmr);
}
Serializer ser = null;
DeserializerFactory deser = null;
try {
ser = (Serializer)mapping.getSerializer().newInstance();
deser = (DeserializerFactory)mapping.getDeserializer().newInstance();
} catch (Exception e) {}
try {
if (ser != null)
tmr.addSerializer(mapping.getLanguageSpecificType(),
mapping.getQName(), ser);
if (deser != null)
tmr.addDeserializerFactory(mapping.getQName(),
mapping.getLanguageSpecificType(),
deser);
} catch (Exception e) {
throw new DeploymentException(e.getMessage());
}