<div dir="ltr"><div><div><div><div>Input:<br><br><QuickPay><Message>[REQ_STATUS:0]  </Message></QuickPay><br><br></div>Output:<br>    <Document stan="1427246181733"><br>    <ds:Object xmlns:ds="<a href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>" Id="Res0"><QuickPay><Message>[REQ_STATUS:0]  </Message></QuickPay></ds:Object><br>    <ds:Signature xmlns:ds="<a href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>"><br>      <ds:SignedInfo><br>        <ds:CanonicalizationMethod Algorithm="<a href="http://www.w3.org/TR/2001/REC-xml-c14n-20010315">http://www.w3.org/TR/2001/REC-xml-c14n-20010315</a>"></ds:CanonicalizationMethod><br>        <ds:SignatureMethod Algorithm="<a href="http://www.w3.org/2000/09/xmldsig#rsa-sha1">http://www.w3.org/2000/09/xmldsig#rsa-sha1</a>"></ds:SignatureMethod><br>        <ds:Reference Type="<a href="http://www.w3.org/2000/09/xmldsig#Object">http://www.w3.org/2000/09/xmldsig#Object</a>" URI="#Res0"><br>          <ds:Transforms><br>            <ds:Transform Algorithm="<a href="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments">http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments</a>"></ds:Transform><br>          </ds:Transforms><br>          <ds:DigestMethod Algorithm="<a href="http://www.w3.org/2000/09/xmldsig#sha1">http://www.w3.org/2000/09/xmldsig#sha1</a>"></ds:DigestMethod><br>          <ds:DigestValue>OXSrAdOtqbFknUT8G/2TeNgUTkM=</ds:DigestValue><br>        </ds:Reference><br>        <ds:Reference Type="<a href="http://www.w3.org/2000/09/xmldsig#Object">http://www.w3.org/2000/09/xmldsig#Object</a>" URI="#Res1"><br>          <ds:Transforms><br>            <ds:Transform Algorithm="<a href="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments">http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments</a>"></ds:Transform><br>          </ds:Transforms><br>          <ds:DigestMethod Algorithm="<a href="http://www.w3.org/2000/09/xmldsig#sha1">http://www.w3.org/2000/09/xmldsig#sha1</a>"></ds:DigestMethod><br>          <ds:DigestValue>qRDizs6vyYLCA4eMFPTh1AS/uZo=</ds:DigestValue><br>        </ds:Reference><br>      </ds:SignedInfo><br>          <ds:SignatureValue>aeCm/mj0EbIuz8EuPukijYWC59qLfEwgGNFB6tbb4EFM+OgUSzDdDlJvi0olOUYjMdMyEKKEjvPF<br>            Yrb4GZOHpAgeY0x2A7s=<br>          </ds:SignatureValue><br>          <ds:KeyInfo><br>            <ds:X509Data><br>              <ds:X509Certificate><br>                EIdMKGIdnkwsRsM=<br>              </ds:X509Certificate><br>            </ds:X509Data><br>          </ds:KeyInfo><br>        <ds:Object Id="Res1"><SignatureProperties><SignatureProperty Target="TimeStamp"><randomstamp>incB9/fhgZh+WTTMiqwGjA==</randomstamp><date>2015-03-25</date><time>07:04:04:083</time></SignatureProperty></SignatureProperties></ds:Object><br>      </ds:Signature><br>    </Document><br><br><br><br></div>Questions:<br></div>What is this ds prefix for? How to generate document with that prefix?<br></div><div>I have problems with second  <ds:Object Id="Res1"></div><div><br><br></div><div>For start I use this code:<br><a href="https://gist.github.com/Houdini/8bd661d1d0c846293f3a">https://gist.github.com/Houdini/8bd661d1d0c846293f3a</a><br><br></div><div>But it doesnt looks right for me.<br></div><div><br></div><div>Thanks in advance.<br></div></div>