On Friday, May 18, 2012 06:48:54 PM Laurent Pellegrino wrote: > Hi, > > I come back again on this issue because I haven't find any solution to > the problem. To summarize, I send a Subscribe message to a service > that implements the NotificationProducer interface provided with CXF. > This subscribe message has a topic expression element that declares > an xmlns attribute. In the logger traces I can see that on the server > side, in inbound the subscribe message received is still the same than > the one which is sent. However, when the XML payload is used > internally by CXF (or a library used by CXF, I don't know how it works > internally) to reconstruct the Subscribe message, I get a Subscribe > message with a TopicExpressionType whose the attributes list (which > are accessible through getOtherAttributes()) should contain my initial > xmlns attribute but that's not the case. Is there a reason for no > having this value in the otherAttributes map? Is it a bug during the > reconstruction? Is there a workaround?
Because we just use JAXB to marshal/unmarshal these things, much of this is out of our control. If you aren't using CXF 2.6.0, I would definitely suggest moving up to 2.6.0 as I did do a little work to support pulling some additional things out, but really doesn't help in all cases. You could also try an updated version of the JDK or possibly the latest Xalan jar. JAXB does use the javax.transform stuff when parsing the DOM elements and thus a bug there might cause this. Dan > > Any idea is welcome. > > Thanks. > > Kind Regards, > > Laurent > > On Mon, Apr 16, 2012 at 9:39 AM, Laurent Pellegrino > > <[email protected]> wrote: > > Any idea? > > > > -- > > View this message in context: > > http://cxf.547215.n5.nabble.com/WSN-Service-and-TopicExpression-attribu > > tes-tp5635132p5643149.html Sent from the cxf-user mailing list archive > > at Nabble.com. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
