Hi
On 12/10/12 03:29, cantalou89 wrote:
> dear all:
> i use cxf2.6.2 to public webservice , now i want to replace elememt , it 
> works fine in inTransformElements , but outTransformElements was not.
> the configuration:
> <bean id="transformFeature" 
> class="org.apache.cxf.feature.StaxTransformFeature">
>      <property name="inTransformElements">
>         <map>
>             <entry 
> key="{http://www.chinamobile.com/vgop/serviceorder/v1_0}subscribeServCfmReq"; 
> value="subscribeServCfmReq" />
>         </map>
>     </property>
>     <property name="outTransformElements">
>           <map>
>               <entry key="return" value="ns2:subscribeServCfmResp" />
>           </map>
> </property>
> </bean>
> but client receive a message like that:
> <soap:Envelope 
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body>
> <ns2:subscribeServCfmResponse 
> xmlns:ns2=http://www.chinamobile.com/vgop/serviceorder/v1_0>
> <return><result>0</result></return></ns2:subscribeServCfmResponse></soap:Body></soap:Envelope>
> 

It has to be

<entry key="return"
value="{http://www.chinamobile.com/vgop/serviceorder/v1_0}subscribeServCfmResp";
/>

Cheers, Sergey

> the outTransformElements is not work , is it the configuration correct ? or 
> there is another way to do this
> thanks
> 
> 
> 
> 
> cantalou89


-- 
Sergey Beryozkin

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

Blog: http://sberyozkin.blogspot.com

Reply via email to