On Monday, June 18, 2012 05:40:02 AM pazzodalegare wrote:
> Dear All,
>
> I'm trying to modify ws-notification example to send my custom payload.
>
> So I instruct the NotificationBroker about new classes:
>
> notificationBroker.setExtraClasses(org.apache.cxf.bindings.my.package.Obje
> ctFactory.class);
>
> and marhall operation are going well.
>
> On Consumer side I receive my notifications but they are instance of
> com.sun.org.apache.xerces.internal.dom.ElementNSImpl
> I would like to have it unmarshalled to use my object. How I can do that?
The constructor of the Consumer looks like:
public Consumer(Callback callback, String address,
Class<?> ... extraClasses)
You should just be able to add the ObjectFactory there in the extraClasses.
--
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com