none
Talking SOAP with exchange trouble.Need your help please. RRS feed

  • Question

  • I am using PHP to work with exchange web service(EWS). To establish connection with exchange account, I am following the way exactly described in the following link.

    http://www.howtoforge.com/talking-soap-with-exchange

     And the connection seems to be working or established. The authentication seems to be working. After establishing the connection i also tried print_r($client->__getFunctions()).

    And it prints all the functions available.

    So, I think this proves that the connection is working fine.

     

    Now, when it comes to calling functions on the created $client object I am having problem. The function is not responding at all.

     The following code is supposed to list all the calendar items(i.e print the subjects of all the calendar items).

                 $FindItem->Traversal = "Shallow";

          $FindItem->ItemShape->BaseShape = "AllProperties";

          $FindItem->ParentFolderIds->DistinguishedFolderId->Id = "calendar";

          $FindItem->CalendarView->StartDate = "2010-12-01T00:00:00Z";

          $FindItem->CalendarView->EndDate = "2011-12-31T00:00:00Z";

          $result = $client->FindItem($FindItem);

          $calendaritems = $result->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem;

          foreach($calendaritems as $item) {

                echo $item->Subject."n";

          }

     But, it seems not working. When I do echo $result it prints blank which infers that the function is not returning anything.

    I have been trying to figure out the problem for a long time. I appreciate any help you provide. Thank you again.

     

    Sincerely,

    nondescriptive

    Thursday, April 28, 2011 8:18 PM