Forum Discussion

Sandesh's avatar
Sandesh
New Member
2 years ago

Groovy script

 

I have written groovy script for passing input parameter for  angular tag  <xd:SignatureMethod Algorithm="?"> 

I am trying to pass input value within the angular tag (<xd:SignatureMethod Algorithm="?"> );

This is the script  

samplexmlreq.setNodeValue("//ns:ES1-RegisterEISRequest/ns:Eis/ns:EumSignature/Id/xd:SignedInfo/Id/xd:SignatureMethod/Algorithm",Algorithm)

 

can you provide solution for this error

 

I am able to run the script not showing any error but not able to get the values which i passed to angular tags

1 Reply

  • JuZ0's avatar
    JuZ0
    Contributor
    Could be related to namespaces in Xpath expression. I think they should be defined so that expression can find the correct path.

    You could also try to add property expansion macro to those tags which contain value you want to replace. Then you could refer to your script output or property table to get that desired value.