cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cogitate <monish.u...@gmail.com>
Subject cxf-2.4.0 pattern match StaxTransformFeature?
Date Mon, 09 May 2011 03:19:11 GMT
hi sergey:
  thanks for valuable changes - in 2.2.4 i had custom stream writer to
remove these namespaces by hijacking the output stream.
with the StaxTransformFeature and at the USER_LOGICAL space adding
message.put( "soap.env.ns.map" , nsMap); i am able to completely control
what goes out and into the wire.

however, i was wondering if you could add support for regex/pattern matching
on strings that would really help a situation like the following xml

out xml going from cxf :
<ns2:WebGet xmlns:ns3="http://schemas.web.com/xml/error/"
xmlns:ns2="http://schemas.web.com/service"><ns2:Buffer><ns2:Name>ROUTE</ns2:Name></ns2:Buffer></ns2:WebGet>

out xml i need :
<WebGet><Buffer><Name>ROUTE<Name><Buffer><WebGet>

of course i can get this result by having an entry in my spring config(as
you illustrated) for both ns2 and ns3 namespaces.

i want to be able to pattern match like : "*schemas.web.com*" or simply drop
all namespace elements. is there a way to do that?


--
View this message in context: http://cxf.547215.n5.nabble.com/cxf-2-4-0-pattern-match-StaxTransformFeature-tp4381005p4381005.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message