QName xmlType = new QName("urn:foo", "Data");
BeanSerializerFactory sf = new BeanSerializerFactory(javaType, xmlType);
BeanDeserializerFactory df = new BeanDeserializerFactory(javaType, xmlType);
TypeMappingRegistry tmr = engine.getTypeMappingRegistry();
TypeMapping tm = (TypeMapping) tmr.getTypeMapping(Constants.URI_DEFAULT_SOAP_ENC);
if (tm == null || tm == tmr.getDefaultTypeMapping()) {
tm = (TypeMapping) tmr.createTypeMapping();
tmr.register(Constants.URI_DEFAULT_SOAP_ENC, tm);
}
tm.register(javaType, xmlType, sf, df);
ServiceDesc desc = new ServiceDesc();
desc.loadServiceDescByIntrospection(Service.class, tm);
reverse.setServiceDescription(desc);