You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by dkayahan <di...@hotmail.com> on 2012/08/10 14:18:00 UTC
How to use JAXBElement
I'am trying to get CXF working. I'am using brokered notification service and
trying to notify a message in a publish and subscribe system.
notificationBroker = new NotificationBroker("http://localhost:" +
brokerPort + "/wsn/NotificationBroker/");
Notification broker is working..
notificationBroker.notify("myTopic", new JAXBElement<String>(new
QName("urn:test:org", "tag"),String.class, "Hello World!"));
When I run this code, the output is <code>[ns8:tag: null]</code> but I'am
expecting like <code>[ns8:tag: Hello World]</code>. Do I expect wrong
output?
I'am pretty new to CXF as well as JAXBElement. Any help about JAXBElement
will be appreciated.
Thanks in advance
--
View this message in context: http://cxf.547215.n5.nabble.com/How-to-use-JAXBElement-tp5712293.html
Sent from the cxf-user mailing list archive at Nabble.com.