*/
public XKMSInvoker(String serviceURL, Collection<Certificate> cacerts){
XKMSService xkmsService;
try {
xkmsService = new XKMSService(new URL(serviceURL + "?wsdl"),new QName("http://www.w3.org/2002/03/xkms#wsdl", "XKMSService"));
sourceDispatch = xkmsService.createDispatch(new QName("http://www.w3.org/2002/03/xkms#wsdl", "XKMSPort"), Source.class, Service.Mode.PAYLOAD);
} catch (MalformedURLException e) {
log.error("Error creating XKMS Service instance",e);
}
this.cacerts = cacerts; // null if signed responses are not required.
}