Forum Discussion

Happy's avatar
Happy
Contributor
9 years ago

Validation xml signature in Soap UI using groovy

This is part of my request.

<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
 <SignedInfo>
   <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
   <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
   <Reference URI="">
     <Transforms>
       <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
     </Transforms>
     <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
     <DigestValue>srfthsrfthsth</DigestValue>
   </Reference>
 </SignedInfo>
 <SignatureValue>srftjzasrthuust</SignatureValue>
 <KeyInfo>
   <X509Data>
     <X509IssuerSerial>
       <X509IssuerName>qwwe</X509IssuerName>
       <X509SerialNumber>123</X509SerialNumber>
     </X509IssuerSerial>
     <X509Certificate>assdf</X509Certificate>
   </X509Data>
 </KeyInfo>

 

I need to validate xml signature in Soap UI using groovy. How to do it?