Hi, I'm new to Spring and web services, but please bear with me. I would like to build an application that retrieves xml http requests and loads/parses the data from the xml into an object. Is there something already built into Spring that handles this? Ideally, I would like to be able to have the URL of the xml feed included in my applicationContext.xml and connected to my handler mapping somewhere in the block of XML below, so that listBooks loads the data from the corresponding URL
Here is an example of the xml:Code:<bean id="portletModeParameterHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeParameterHandlerMapping"> <property name="order" value="1"/> <property name="interceptors"> <list> <ref bean="parameterMappingInterceptor"/> </list> </property> <property name="portletModeParameterMap"> <map> <entry key="view"> <map> <entry key="listBooks" value-ref="bookController"/> <entry key="viewBook" value-ref="bookViewController"/> </map> </entry> </map> </property> </bean>
Any help would be greatly appreciated.Code:<?xml version="1.0" encoding="UTF-8" standalone="no"?> <Books_List> <books> <book id="222"> <title>The Jungle</title> </book> <book id="235"> <title>To Kill a Mockingbird</title> </book> </books> </Books_List>
Thanks!


Reply With Quote