title: Passing XML Data As Parameter In SOAP Request
body: <p>I have a URL for a WSDL configuration file that I imported into SOAPUI. I filled out the relevant 'form' for the request I want to make named 'SubmitAndRate.' When I send the request, I receive a 200 response. But there is one more field at the bottom called xmlData, which SOAPUI says should be a string, and I believe I'm supposed to place the data from a sample XML request file I was also provided with.</p>
  
  <p>Here is the current request:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;tem:SubmitAndRate&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:integrationUser&gt;username&lt;/tem:integrationUser&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:integrationPassword&gt;password&lt;/tem:integrationPassword&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:userName&gt;usernamea&lt;/tem:userName&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:originator&gt;ITC&lt;/tem:originator&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:companyId&gt;1&lt;/tem:companyId&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:stateId&gt;11&lt;/tem:stateId&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:LOBId&gt;1&lt;/tem:LOBId&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:transactionEffectiveDate&gt;2002-05-30T09:30:10.5&lt;/tem:transactionEffectiveDate&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:guaranteedRatePeriodEffectiveDate&gt;2002-05-30T09:30:10.5&lt;/tem:guaranteedRatePeriodEffectiveDate&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:transTypeId&gt;2&lt;/tem:transTypeId&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:isQuote&gt;true&lt;/tem:isQuote&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:persistQuote&gt;true&lt;/tem:persistQuote&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:autoCreateAdditionalInterest&gt;false&lt;/tem:autoCreateAdditionalInterest&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:saveAncillaryChoicePointData&gt;false&lt;/tem:saveAncillaryChoicePointData&gt;
           &lt;!--Optional:--&gt;
           &lt;tem:xmlData&gt;&lt;/tem:xmlData&gt;
        &lt;/tem:SubmitAndRate&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>The is the line I believe should contain the XML request data. Says it should be a string in SOAPUI.</p>
  
  <pre><code>&lt;tem:xmlData&gt;&lt;/tem:xmlData&gt;
  </code></pre>
  
  <p>And the XML sample request they provided me looks like:</p>
  
  <pre><code>&lt;ACORD&gt;
  &lt;SignonRq&gt;
  &lt;SignonPswd&gt;
  &lt;CustId&gt;
  &lt;CustLoginId&gt;username&lt;/CustLoginId&gt;
  ...
  </code></pre>
  
  <p>Since I am coding this in PHP, I need a way to include the XML contents as a string inside of the request. Am I supposed to do something like:</p>
  
  <pre><code>&lt;tem:xmlData&gt;
  &lt;![CDATA[
     &lt;ACORD&gt;
      &lt;SignonRq&gt;
      &lt;SignonPswd&gt;
      &lt;CustId&gt;
      &lt;CustLoginId&gt;username&lt;/CustLoginId&gt;
  ]]&gt;
  &lt;/tem:xmlData&gt;
  </code></pre>
  
  <p>When I do the above, I also still get a 200 response, but I don't seem to get anything kicked back to me in the way of a response. I just get an empty response of:</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;s:Body&gt;
        &lt;SubmitAndRateResponse xmlns="http://tempuri.org/"&gt;
           &lt;SubmitAndRateResult/&gt;
        &lt;/SubmitAndRateResponse&gt;
     &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>
  
  <p>And I have no documentation or help to determine if my data is going in there correctly. Does my request look correct, and if so how can I test my data is going in there correctly?</p>