Can you put together a test-case to reproduce the problem?

Colm.

On Thu, Jun 21, 2018 at 9:06 AM, Michael <michael.schae...@destatis.de>
wrote:

> Hi,we're using CXF 2.7.8, Java First approach, in Tomcat 8.5 under Java 8,
> and Eclipse 4.3.I'm trying to remove elements from a SOAP response using
> the
> TransformationFeature and outDropElements.First I created cxf.xml with a
> bean definition and put it into into the source folder, from where it is
> correctly copied on startup into WEB-INF/classes. In
> WEB-INF/META-INF/CXF/beans.xml (linked by context-param
> contextConfigLocation in web.xml) I added the feature using  However, I get
> NoSuchBeanDefinitionException so it seems the definition is not honoured.
> The same occurs if I use -Dcxf.config.file.url to point to the cxf.xml
> elsewhere.I then replaced the reference in beans.xml with the bean
> definition, which then seems to be honoured. To test this, I manipulated
> the
> class name of the bean class to be incorrect and a corresponding
> ClassDEfNotFoundError was thrown. So I continued using only beans.xml.The
> service in question is called ManagementService and the method is
> getPublishedNetworkServices. The class/type is NetworkServiceDTO, from
> which
> I try to remove the *TimeStamp fields for compatibility reasons. I get no
> errors but the fields are not removed from the response. I've been digging
> through the CXF web site and StackOverflow a lot to get this together and
> I'm not sure if I'm still doing something wrong or if it is not working for
> another reason. I also tried the deep-drop approch using
> outTransformElements, but to no avail. As we are approaching a release, I'd
> prefer to avoid an upgrade to another CXF version.TIA for any of your
> highly
> appreciatred help,Michael beans.xml
> <http://cxf.547215.n5.nabble.com/file/t46107/beans.xml>
> managementservice.wsdl
> <http://cxf.547215.n5.nabble.com/file/t46107/managementservice.wsdl>
> NetworkServiceDTO.java
> <http://cxf.547215.n5.nabble.com/file/t46107/NetworkServiceDTO.java>
> web.xml <http://cxf.547215.n5.nabble.com/file/t46107/web.xml>
>
>
>
> --
> Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to