None of those <import resource="..."/> statements except for the first should be needed in CXF 2.6+ versions (possibly even some older versions as well.)

Glen

On 10/25/2012 03:51 PM, pcgayan wrote:
this post helped!
was able to resolve namespace appearing on the root element of the body tag!

Here is my exact cxf-servlet:
<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:jaxws="http://cxf.apache.org/jaxws";
        xmlns:soap="http://cxf.apache.org/bindings/soap";
        xsi:schemaLocation="
                http://www.springframework.org/schema/beans
                http://www.springframework.org/schema/beans/spring-beans.xsd
                http://cxf.apache.org/bindings/soap
                http://cxf.apache.org/schemas/configuration/soap.xsd
                http://cxf.apache.org/jaxws 
http://cxf.apache.org/schemas/jaxws.xsd";>

        <import resource="classpath:META-INF/cxf/cxf.xml" />
        <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
        <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
        <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
        <import resource="classpath:META-INF/cxf/cxf-extension-xml.xml" />
        <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
        <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" 
/>
        
        <jaxws:endpoint id="webService"
                implementorClass=src.WebServiceImpl"
                implementor="#webService" address="/webService">
                 <jaxws:outInterceptors>
                    <bean name="transformFeature"
class="org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor"></bean>
                  </jaxws:outInterceptors>
                
                  <jaxws:features>
                   <bean class="org.apache.cxf.feature.LoggingFeature" />
                   <bean id="transformFeature"
class="org.apache.cxf.feature.StaxTransformFeature">
                     <property name="outTransformElements">
                       <map>
                        <entry key="{http://XXXX/service/}*"; value="*" />
                       </map>
                     </property>
                    </bean>
                  </jaxws:features>
        </jaxws:endpoint>
</beans>





--
View this message in context: 
http://cxf.547215.n5.nabble.com/StaxTransformFeature-outTransformElements-problem-tp5716579p5717458.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza

Reply via email to