title: How to request an answer from a SOAP XML API?
body: <p>I never worked with SOAP XML api before.</p>
  
  <p>I read a couple of similar questions on SO but I can't get it to work.</p>
  
  <p>Here's a simple request:</p>
  
  <pre><code>&lt;soap12:Envelope xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
  xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:soap12=”http://www.w3.org/2003/05/
  soap-envelope”&gt;
  &lt;soap12:Body&gt;
  &lt;CheckDomainAvailability xmlns=”https://live.domainbox.net/”&gt;
  &lt;AuthenticationParameters&gt;
  &lt;Reseller&gt;myreseller&lt;/Reseller&gt;
  &lt;Username&gt;myuser&lt;/Username&gt;
  &lt;Password&gt;mypassword&lt;/Password&gt;
  &lt;/AuthenticationParameters&gt;
  &lt;CommandParameters&gt;
  &lt;DomainName&gt;checkadomain.co&lt;/DomainName&gt;
  &lt;LaunchPhase&gt;GA&lt;/LaunchPhase&gt;
  &lt;/CommandParameters&gt;
  &lt;/CheckDomainAvailability&gt;
  &lt;/soap12:Body&gt;
  &lt;/soap12:Envelope&gt;
  </code></pre>
  
  <p>I've contacted them but they do not offer a PHP API.</p>
  
  <p>I would like to use the SoapClient class built in PHP.</p>
  
  <p>The question is: 
  How do I send the request and print the answer?</p>