#include "XMLObjectBaseTestCase.h"\r
\r
#include <xmltooling/signature/CredentialResolver.h>\r
+#include <xmltooling/signature/KeyInfo.h>\r
#include <xmltooling/signature/SignatureValidator.h>\r
\r
#include <fstream>\r
for_each(m_resolver->getCertificates().begin(),m_resolver->getCertificates().end(),bind1st(_addcert(),x509Data));\r
sig->setKeyInfo(keyInfo);\r
\r
- // Signing context for the whole document.\r
- vector<Signature*> sigs(1,sig);\r
DOMElement* rootElement = NULL;\r
try {\r
- rootElement=sxObject->marshall((DOMDocument*)NULL,&sigs);\r
+ rootElement=sxObject->marshall((DOMDocument*)NULL);\r
+ sig->sign();\r
}\r
catch (XMLToolingException& e) {\r
TS_TRACE(e.what());\r