posted 14 years ago
Hi all,
I am trying to call a webservice using restTemplate.getForObject method. Following is the response that I am getting by this webservice:-
<orders>
<order>
<confirmationId>50001</confirmationId>
........
......
</order>
<order>
<confirmationId>52000</confirmationId>
......
.....
</order>
</orders>
I need to use addImplicitCollection method of xstream but i do not know how to use this in spring configuration. Following is my configuraion:-
<bean id="restTemplate" class="org.springframework.web.client.RestTemplate">
<constructor-arg ref="httpClientFactory"/>
<property name="messageConverters">
<list>
<bean class="org.springframework.http.converter.xml.MarshallingHttpMessageConverter">
<constructor-arg>
<bean class="org.springframework.oxm.xstream.XStreamMarshaller">
<property name="aliases">
<props>
<prop key="orders">com.entertainment.epintegration.webservice.model.CPCFulfillmentModel</prop>
<prop key="order">com.entertainment.epintegration.webservice.model.CPCOrderFulfillmentModel</prop>
</props>
</property>
</bean>
</constructor-arg>
</bean>
</list>
</property>
</bean>
Can any one please help me to understand how to use addImplicitCollection in above configuration?
Thanks
Venkatesh Pendharkar