title: How to use spring-ws client to call the same webservice using different keystore
body: <p>I have some application that need to run in the same Application server. Each application need to authenticate through the same web service using a certificate specific for that application.
  Obviously I can put all the certificates inside the same keystore, but how can I specify which one I have to use?
  For the calls I'm using a Spring WebServiceTemplate and I want to find something that can be easily configure inside the spring xml configuration file.</p>
  
  <p>I'm trying to follow this:
  <a href="https://stackoverflow.com/questions/1788031/how-can-i-have-multiple-ssl-certificates-for-a-java-server">How can I have multiple SSL certificates for a Java server</a></p>
  
  <p>The whole concept is clear but I can't understand how to link it with Spring WebServiceTemplate and how to specify inside the call which certificate I have to use. </p>