* @param validator a CertificateTrustValidator
*return service proxy
*/
private static RemotePesService getServiceProxy(String pesSvcEndpoint, String clientKeystorePath, String password, CertificateTrustValidator validator) {
ProxyFactory proxyFactory;
EndpointReferenceType pesEpr;
RemotePesService pesProxy;
try {
proxyFactory = createProxyFactory(clientKeystorePath, password, validator);
pesEpr = ConversationID.getEPR(pesSvcEndpoint);
pesProxy = proxyFactory.createProxy(pesEpr, RemotePesService.class);
} catch (Exception ex) {
throw new RuntimeException("Error ", ex);
}