Generate signature within XML payload in SOAPUI

142 Views Asked by At

I have the following XML and need to generate a signature instead of the marker "{$SIGNATURE}", the signature should be RSA-SHA1 of the content inside the "content" tag.

<sig digestMethod="SHA1" sigMethod="RSA-SHA1" thumbprint="XXXXXX">
{$SIGNATURE}
</sig>
<content>
  <app-id>yxz123</app-id>
  <hmac>HMACSHA256</hmac>
  <signing-time>${=new java.text.Simpl${HTTP Request#ResponseAsXml}eDateFormat("yyyy-MM-dd'T'HH:mm:ss").format(new Date())}
  </signing-time>
</content>
0

There are 0 best solutions below