Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

help with simple cxf transform feature example

$
0
0
I have a very simple request coming in to my CXF endpoint:

<myns:getData>
<SSN></SSN>
<ReqType></ReqType>
</myns:getData>

I'd like to transform the request to this (note only change is additional
element 'ReqQName':

<myns:getData>
<SSN></SSN>
<ReqType></ReqType>
<ReqQName></ReqQName>
</myns:getData>

My CXF transform applied to CXF endpoint looks like this :

<bean id="incomingTransformFeature"
class="org.apache.cxf.feature.StaxTransformFeature">
<property name="inAppendElements">
<map>

<entry key="ReqType/" value="ReqQName=TESTQ.TRANSFERS"/>
</map>
</property>

</bean>

The transformed request looks like this:

<myns:getData>
<SSN></SSN>
<ReqType>
<ReqQName>DEQY.RESEARCH.TRANSFERS</ReqQName>
</ReqType>
</myns:getData>

Notice the 'ReqQName' element was placed inside the 'ReqType' element. How
do specify transform that will put the 'ReqQName' *after* the 'ReqType'
element?

Viewing all articles
Browse latest Browse all 5648

Trending Articles