last year I made a PHP project that interacted with and Exchange 2010 Server using Exchange Web Services. I have just come back to this project, and when I try to use any of the php-ews methods, I get this error:
SoapClient::__doRequest() returned non string value
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
I used to work on a similar project, but involving PHP and MS Sharepoint web services. I used NuSoap library to facilitate working with SOAP.
I have no experience with PHP EWS, but I'd recommend you to look into request and response codes, data and headers to see what exactly you send and receive. This info will probably help you find your problem (is it either authentication error or failure to get wsdl description or invalid arguments for the web method etc.).
// For debugging purposes // return transfer data as a result curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // read headers curl_setopt($ch, CURLOPT_HEADER, 1); // show request headers, will display all the outgoing info, including fields curl_setopt($ch, CURLINFO_HEADER_OUT, true); // Make the request $data = curl_exec($ch); $errors = curl_error($ch); // get info about the transfer, for debugging purposes $details = curl_getinfo($ch); curl_close($ch); // Displaying debugging info var_dump($data); var_dump($errors); var_dump($details);