Hi,

The CXF has generated below soap request and i want to drop the element
<Response /> before sending it out. I have tried to add features but it is
still not dropping.

<soap:Body>
                <SearchClaims xmlns="http://www.miaftr.co.uk/schemas";>
                        <Request>
                                <ClaimId>
                                        <OrgUnitId>0370000</OrgUnitId>
                                </ClaimId>
                                <SearchFilingsFor>A</SearchFilingsFor>
                                <Postcode>DE215BH</Postcode>
                                <VehicleId>
                                        <Vrm>AA</Vrm>
                                </VehicleId>
                        </Request>
                        <Response />
                </SearchClaims>
        </soap:Body>

*Features Config:*


<bean id="transformFeature"
class="org.apache.cxf.feature.StaxTransformFeature">
                <property name="outTransformElements">
                        <map>
                                <entry key="Response" value="" />
                        </map>
                </property>
                <property name="outDropElements">
                        <list>
                                <value>Response</value>
                        </list>
                </property>
        </bean>


But it didn't work. Any help is highly appreciated.

Thanks,
Michael.

--
View this message in context: 
http://cxf.547215.n5.nabble.com/unable-to-edit-the-soap-request-with-features-tp5710769.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to