cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: ws-notification (cxf v. 2.6.1): how to notify custom message
Date Mon, 18 Jun 2012 18:38:40 GMT
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
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Mime
View raw message