Ben_Sumner_7319

SOAP XML Request

Discussion created by Ben_Sumner_7319 on Jan 16, 2018
Latest reply on Apr 8, 2018 by Ben_Sumner_7319
Hi,
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="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header>
    <ns1:session soapenv:mustUnderstand="0" xmlns:ns1="http://www.businessobjects.com/DataServices/ServerX.xsd">
      <SessionID>Some session id</SessionID>
    </ns1:session>
  </soapenv:Header>
  <soapenv:Body>
    <ns1:RunBatchJobRequest xmlns:ns1="http://www.businessobjects.com/DataServices/ServerX.xsd">
      <jobName>Job name</jobName>
      <repoName>Job repo</repoName>
      <jobServer>Job server</jobServer>
      <jobParameters>
        <usecollectedstats>true</usecollectedstats>
      </jobParameters>
      <globalVariables>
        <variable name="G_BUSINESS_DATE">12-Jan-2018</variable>
        <variable name="G_RUN_NO">0</variable>
      </globalVariables>
    </ns1:RunBatchJobRequest>
  </soapenv:Body>
</soapenv:Envelope>

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.

Cheers 
Ben

Outcomes