Forum Discussion

Ramanasaps4hana's avatar
Ramanasaps4hana
Occasional Contributor
6 years ago

How to set Property Value of Sub Node of XML file in SOAP UI?

Hi Team,

 

Thank you very much in advance.

 

I have xml in the below structure and i need to update values to sub nodes using Groovy script to automate the TestScripts.

 

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:inb="http://sap.com/xi/FI-Processing">
<soap:Header/>
<soap:Body>
<inb:OrderItemMessageBulk>
  <MessageHeader>
      <CreationDateTime></CreationDateTime>
  </MessageHeader>
  <OrderItems>
    <MessageHeader>
      <CreationDateTime></CreationDateTime>
    </MessageHeader>
    <OrderItem>
      <DocumentItemID DocumentItemTypeCode="" SendingComponentID="" LogicalSystemID="">       </DocumentItemID>

  </OrderItems>
</inb:OrderItemMessageBulk>
</soap:Body>
</soap:Envelope>

 

How can i set Value of node DocumentItemTypeCode, SendingComponentID and LogicalSystemID in the above XML structure.

 

Kindly guide me to solve the issue.

 

Regards,

Ramana.