Automic Workload Automation

how do you pass a variable to a soap request

  • 1.  how do you pass a variable to a soap request

    Posted Jun 06, 2018 05:33 PM
      |   view attached

    I am looking to pass the dynamic value like this into my SOAP request <n1:strSecurityKey>b3032596-dbfb-4d19-8047-2151db309369</n1:strSecurityKey>  as a variable named &SECURITYKEY_PASSED#

     

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:n1="http://tempuri.org/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header/>
      <soapenv:Body>
        <n1:CreateBatch>
          <!--Optional:-->
          &SECURITYKEY_PASSED#
          <!--Optional:-->
          <n1:xmlBatchInfo>
            <!--Enter any elements here-->
     <BatchSchema xmlns="">
        <PaymentBatch>
           <OfficeCode>RCOffice</OfficeCode>
           <OwnerName>RCOwner</OwnerName>
           <BatchDate>2018-06-06</BatchDate>
           <PaymentOrigin>RC</PaymentOrigin>
           <BatchFloat>0</BatchFloat>
        </PaymentBatch>
     </BatchSchema>
                </n1:xmlBatchInfo>
        </n1:CreateBatch>
      </soapenv:Body>
    </soapenv:Envelope>