Hi Dan !
> >I tried this code:
> >
> >XFire xfire = XFireFactory.newInstance().getXFire();
> >
> >CustomTypeMapping typeMapping = new CustomTypeMapping();
> >typeMapping.register(Foo.class, new QName("http://foo.com/", "Foo",
> >"foo"), new FooType());
> >TypeMappingRegistry typeMappingRegistry = new DefaultTypeMappingRegistry();
> >typeMappingRegistry.registerDefault(typeMapping);
> >
>
> Maybe try this instead:
>
> TypeMappingRegistry typeMappingRegistry = new DefaultTypeMappingRegistry();
> TypeMapping tm = typeMappingRegistry.getDefaultTypeMapping();
Here tm is null, for newly created instances of
DefaultTypeMappingRegistry, hence the line below throws a NPE.
That's why I used registerDefault().
> tm.register(yourType);
I'll try to look in XMLTypeCreator; if getDocument() could be enhanced
to look also in other (configurable) places (and not only in the same
directory of the class), that should be enough for me.
May that be the right direction to look at ?
Thanks !
Simon
--
http://bordet.blogspot.com