SOAP XML Request

Discussion created by Ben_Sumner_7319 on Jan 16, 2018
Latest reply on Apr 8, 2018 by Ben_Sumner_7319
I've successfully been using SOAP using the request object and filling out the required arguments.

Now I need to add the XML globalVariables dynamically. The variables change with each run. 

If I enter the details in the object section then click the XML button. It comes back with an error "Unable to build soap envelope for a multi argument web service method"

This is the raw XML SOAP request (actual values removed) that is produced when I don't try and manually define the XML request:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="">
    <ns1:session soapenv:mustUnderstand="0" xmlns:ns1="">
      <SessionID>Some session id</SessionID>
    <ns1:RunBatchJobRequest xmlns:ns1="">
      <jobName>Job name</jobName>
      <repoName>Job repo</repoName>
      <jobServer>Job server</jobServer>
        <variable name="G_BUSINESS_DATE">12-Jan-2018</variable>
        <variable name="G_RUN_NO">0</variable>

When I enter the SOAP request into the XML section I can't get it to work. 

What parts of raw XML request need to be added? I've chopped and changed parts but can't get it to work.