{"action":"created","issue":{"url":"https://api.github.com/repos/jamesiarmes/php-ews-issues/issues/9","repository_url":"https://api.github.com/repos/jamesiarmes/php-ews-issues","labels_url":"https://api.github.com/repos/jamesiarmes/php-ews-issues/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/jamesiarmes/php-ews-issues/issues/9/comments","events_url":"https://api.github.com/repos/jamesiarmes/php-ews-issues/issues/9/events","html_url":"https://github.com/jamesiarmes/php-ews-issues/issues/9","id":139713815,"number":9,"title":"Responeobjects empty","user":{"login":"jamesiarmes","id":1030345,"avatar_url":"https://avatars.githubusercontent.com/u/1030345?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesiarmes","html_url":"https://github.com/jamesiarmes","followers_url":"https://api.github.com/users/jamesiarmes/followers","following_url":"https://api.github.com/users/jamesiarmes/following{/other_user}","gists_url":"https://api.github.com/users/jamesiarmes/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesiarmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesiarmes/subscriptions","organizations_url":"https://api.github.com/users/jamesiarmes/orgs","repos_url":"https://api.github.com/users/jamesiarmes/repos","events_url":"https://api.github.com/users/jamesiarmes/events{/privacy}","received_events_url":"https://api.github.com/users/jamesiarmes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jamesiarmes/php-ews-issues/labels/Impersonation","name":"Impersonation","color":"DDDDDD"},{"url":"https://api.github.com/repos/jamesiarmes/php-ews-issues/labels/Support","name":"Support","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-09T22:01:41Z","updated_at":"2016-03-09T22:01:42Z","closed_at":null,"body":"<a href=\"https://github.com/twosg\"><img src=\"https://avatars.githubusercontent.com/u/325412?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [twosg](https://github.com/twosg)**\n_Wednesday Sep 05, 2012 at 13:57 GMT_\n_Originally opened as https://github.com/jamesiarmes/php-ews/issues/75_\n\n----\n\nSupportquestion:\n\nI have now finally accomplished to get access to EWS through PHP5.3.16 with curl 7.22 on IIS6, so I can make requests, but the response is a more or less empty object:\n\n```\nstdClass Object\n(\n    [ResponseMessages] => stdClass Object\n        (\n            [FindItemResponseMessage] => stdClass Object\n                (\n                    [ResponseCode] => NoError\n                    [ResponseClass] => Success\n                    [RootFolder] => stdClass Object\n                        (\n                            [Items] => stdClass Object\n                                (\n                                )\n                            [IncludesLastItemInRange] => 1\n                            [TotalItemsInView] => 0\n                        )\n                )\n        )\n)\n```\n\nI have tried out the example of getting contact items. My code looks as follows:\n\n```php\n$ews = new ExchangeWebServices($host,  $user, $password, ExchangeWebServices::VERSION_2010_SP1);\n\n// Configure impersonation\n$ei = new EWSType_ExchangeImpersonationType();\n$sid = new EWSType_ConnectingSIDType();\n$sid->PrimarySmtpAddress = 'user@mail.domain';\n$ei->ConnectingSID = $sid;\n$ews->setImpersonation($ei);\n\n$request = new EWSType_FindItemType();\n$request->ItemShape = new EWSType_ItemResponseShapeType();\n$request->ItemShape->BaseShape = EWSType_DefaultShapeNamesType::ALL_PROPERTIES;\n$request->ContactsView = new EWSType_ContactsViewType();\n//$request->ContactsView->MaxEntriesReturned = 25;\n$request->ContactsView->InitialName = 'a';\n$request->ContactsView->FinalName = 'z';\n$request->ParentFolderIds = new EWSType_NonEmptyArrayOfBaseFolderIdsType();\n$request->ParentFolderIds->DistinguishedFolderId = new EWSType_DistinguishedFolderIdType();\n$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::CONTACTS;\n$request->Traversal = EWSType_ItemQueryTraversalType::SHALLOW;\n\n$response = $ews->FindItem($request);\n```\n\nIs there any role I have to assign to the account making the request? I am using \"Administrator\". Thanks in advance for any tips and notices.\n\n"},"comment":{"url":"https://api.github.com/repos/jamesiarmes/php-ews-issues/issues/comments/194528960","html_url":"https://github.com/jamesiarmes/php-ews-issues/issues/9#issuecomment-194528960","issue_url":"https://api.github.com/repos/jamesiarmes/php-ews-issues/issues/9","id":194528960,"user":{"login":"jamesiarmes","id":1030345,"avatar_url":"https://avatars.githubusercontent.com/u/1030345?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesiarmes","html_url":"https://github.com/jamesiarmes","followers_url":"https://api.github.com/users/jamesiarmes/followers","following_url":"https://api.github.com/users/jamesiarmes/following{/other_user}","gists_url":"https://api.github.com/users/jamesiarmes/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesiarmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesiarmes/subscriptions","organizations_url":"https://api.github.com/users/jamesiarmes/orgs","repos_url":"https://api.github.com/users/jamesiarmes/repos","events_url":"https://api.github.com/users/jamesiarmes/events{/privacy}","received_events_url":"https://api.github.com/users/jamesiarmes/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T22:01:42Z","updated_at":"2016-03-09T22:01:42Z","body":"<a href=\"https://github.com/jamesiarmes\"><img src=\"https://avatars.githubusercontent.com/u/1030345?v=3\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [jamesiarmes](https://github.com/jamesiarmes)**\n_Thursday Sep 06, 2012 at 10:06 GMT_\n\n----\n\nIf you're getting a 401 you may want to look at #11 to ensure that you are not having issues with cURL. I wouldn't expect a 401 from non-admin users only though. I am not aware of any special permissions required to allow a user to utilize web services.\n"}}