title: How to access body XML in PHP SOAP server
body: <p>When using the ebay API, it make notification requests to your server which can look something like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
   &lt;soapenv:Header&gt;
      Stuff in header
   &lt;/soapenv:Header&gt;
   &lt;soapenv:Body&gt;
    &lt;GetItemResponse xmlns="urn:ebay:apis:eBLBaseComponents"&gt;
     &lt;Timestamp&gt;2015-02-22T16:19:51.956Z&lt;/Timestamp&gt;
     &lt;Ack&gt;Success&lt;/Ack&gt;
     &lt;CorrelationID&gt;3759873&lt;/CorrelationID&gt;
     &lt;Version&gt;885&lt;/Version&gt;
     &lt;Build&gt;E885_CORE_APIMSG_16971418_R1&lt;/Build&gt;
     &lt;NotificationEventName&gt;ItemRevised&lt;/NotificationEventName&gt;
     .
     .
    &lt;/GetItemResponse&gt;
   &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>I define a function <code>GetItemResponse</code> then register it with the SOAP server object <code>$server-&gt;addFunction("GetItemResponse");</code>. The problem is that the function only gets passed the first element '' as the first argument. How do I get the full body passed to my function?</p>