[
https://issues.apache.org/jira/browse/CXF-7805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16555464#comment-16555464
]
Michael Schäfer commented on CXF-7805:
--------------------------------------
Works like a charm now! I suggest to include this information on the
[documentation page|[http://cxf.apache.org/docs/transformationfeature.html]].
I'd be happy to do this if you think it's worth the effort of my registering as
a contributor/editor.
Meanwhile I've found a way to put the definition of the transform feature bean
in an cxf.xml file external to the deployed application by putting the
respective folder on the classpath. The endpoint definitions shall remain
internal and reside in in WEB-INF/classes/cxf.xml which is exactly the
META-INF/cxf/beans.xml I used originally. However, there are still effects I
fail to grasp such as when I move WEB-INF/classes/cxf.xml to
META-INF/cxf/cxf.xml, no service is created, also on startup CXF logs that it
scans all those locations for bean definitions. Also, -Dcxf.config.file.url
still doesn't work.
It would be great if you could look into that, I'd also open another Jira or
provide a new test case if you think that's better. I would also debug into it,
but I'm afraid I cannot spare the time, at least no so soon.
Many thanks for the great help!
> Transform feature outDropElements has no effect
> -----------------------------------------------
>
> Key: CXF-7805
> URL: https://issues.apache.org/jira/browse/CXF-7805
> Project: CXF
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 3.2.5
> Environment: Java 8
> Tomcat 8.5
> Eclipse 4.3
> CXF 3.2.5
> Windows 7 Professional
> Reporter: Michael Schäfer
> Assignee: Colm O hEigeartaigh
> Priority: Major
> Labels: features, outDropElements, transform
> Fix For: 3.2.6, 3.1.17
>
> Attachments: cxfOutDropElements-2.zip, cxfOutDropElements.zip,
> eingangsdb-eks-2.0.jar
>
>
> We're running CXF 3.2.5 web services in Tomcat, java-first-approach.
> For compatibility with older clients, we'd like to remove some elements from
> the response using the transform feature. We'd prefer to do this via
> configuration, so the feature can be easily removed once all clients have
> upgraded.
> We put the configuration - jaxws:feature and beans - in
> WEB-INF/classes/CXF/beans.xml, referenced throug web.xml. Any other way - via
> cxf.xml, be it on classpath or referenced per JVM parameter - failed to find
> the bean defintion. Introducing errors in the bean definition leads to
> corresponding errors, so the bean is recognized, but the configuration has no
> effect on the outbound XML. We also tried addressing the elements with and
> without namespace, full paths, shallow and deep drop, and the XSLT feature,
> too, but to no avail.
> We suspect this might still be a configuration issue or some peculiar
> constellation we fail to recognize, but we are at out wit's end finding the
> real cause of it.
> Attached you find a Maven test project, stripped down to the one web service
> with the one method in question, and exported from Eclipse after running
> maven --clean. The pom contains all dependencies of the original project.
> There is no test case, we simply used SOAPUI which worked fine. The archive
> also contains the WSDL file copied from the source view of the browser.
> TIA,
> Michael
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)