EWS nusoap php request FindItem Operation
<p>I am trying to write a simple php script to get calendar data from Microsoft EWS API :</p>

<pre><code>  include_once('./lib/nusoap.php');

  $username = 'test@dopmain.com';
  $password = 'password';
  $endpoint = 'https://mex09.emailsrvr.com/ews/Services.wsdl';
  $wsdl = true;
  $soapclient = new nusoap_client($endpoint, $wsdl);

  $soapclient-&gt;setCredentials($username, $password, 'ntlm');

  $xml = '&lt;FindItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"';
  $xml .= ' xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" Traversal="Shallow"&gt;';
  $xml .= '  &lt;ItemShape&gt;';
  $xml .= '    &lt;t:BaseShape&gt;IdOnly&lt;/t:BaseShape&gt;';
  $xml .= '    &lt;t:AdditionalProperties&gt;';
  $xml .= '      &lt;t:FieldURI FieldURI="message:From"/&gt;';
  $xml .= '      &lt;t:FieldURI FieldURI="item:Subject"/&gt;';
  $xml .= '      &lt;t:FieldURI FieldURI="message:IsRead"/&gt;';
  $xml .= '      &lt;t:FieldURI FieldURI="item:DateTimeReceived"/&gt;';
  $xml .= '      &lt;t:FieldURI FieldURI="calendar:Start"/&gt;';
  $xml .= '      &lt;t:FieldURI FieldURI="calendar:End"/&gt;';
  $xml .= '      &lt;t:FieldURI FieldURI="calendar:Location"/&gt;';
  $xml .= '      &lt;t:FieldURI FieldURI="task:Status"/&gt;';
  $xml .= '      &lt;t:FieldURI FieldURI="task:DueDate"/&gt;';
  $xml .= '    &lt;/t:AdditionalProperties&gt;';
  $xml .= '  &lt;/ItemShape&gt;';
  $xml .= '  &lt;IndexedPageItemView Offset="0" MaxEntriesReturned="5" BasePoint="Beginning"/&gt;';
  $xml .= '  &lt;ParentFolderIds&gt;';
  $xml .= '    &lt;t:DistinguishedFolderId Id="inbox"/&gt;';
  $xml .= '  &lt;/ParentFolderIds&gt;';
  $xml .= '&lt;/FindItem&gt;';

  $operation = 'FindItem';
  $result = $soapclient-&gt;call($operation, $xml);
  var_dump($result);
  echo '&lt;pre&gt;'; print_r($result); echo '&lt;/pre&gt;';
</code></pre>

<p>Although this code was confirmed by many EWS blogs !!!</p>

<blockquote>
  <p>I get (bool) False as a $result 
  and nothing to echo</p>
</blockquote>

<p>I need your help. Many Thanks!</p>