November 2014
Beginner
182 pages
4h 14m
English
If you need to invoke an Alfresco web script from Spring-based services, then you need to use RestTemplate to invoke HTTP calls. This is the most commonly used technique to execute HTTP calls from Spring-based classes. In order to do this, the following are the steps to be performed. The code snippets are also provided:
RestTemplate in your Spring context file:<bean id="restTemplate" class="org.springframework.web.client.RestTemplate" />
restTemplate in your Spring class as shown in the following example:<bean id="httpCommService" class="com.test.HTTPCallService"> <property name="restTemplate" value="restTemplate" /> </bean>
Read now
Unlock full access