title: Caching SOAP Responses
body: <p>Our current application has to talk with a SAP PI layer, in the form of SOAP style services. Unfortunately, this services layer, does not implement any form of caching, leading to high response times, even for subsequent requests. We think we are down to two options to solve this problem. Note that these are HTTP POSTs.</p>
  
  <ul>
  <li>Cache the java response object that we create, after the first call.</li>
  <li>Cache the xml response, by introducing a caching proxy in-between. Invalidating and checking for cached responses seems more difficult here, because, it will involve peeking into request bodies.</li>
  </ul>
  
  <p>We would like to know, if anyone has any experiences with either approaches, or when faced with a similar situation, how would you solve it</p>