Comments (6)
It's because that constant would be invalid. Although the server is SP3, there is no SP3 schema. What this means is that the upgrade between SP2 and SP3 didn't change the Exchange Web Services API at all. Since the version corrosponds to the schema, trying to make a call for that version should result in an error, since there is no such version for EWS.
I suppose it looks like I might have to either manually map SP3 to SP2, or change how the autodiscover works. Expect something soon(-ish)
from php-ews.
I'm getting same error but with VERSION_2007_SP3, trying to put VERSION_2007 or VERSION_2007_SP1 but retrieve an exception reporting internal error.
Any idea to fix it?
Regards
from php-ews.
What code are you trying that doesn't work on VERSION_2007_SP1
?
from php-ews.
Hi @Garethp,
include_once '..\plugins\PhpEws\vendor\autoload.php';
use garethp\ews\API\ExchangeAutodiscover;
use garethp\ews\API\Exception\AutodiscoverFailed;
use garethp\ews\API\Exception\UnauthorizedException;
use garethp\ews\API;
use garethp\ews\MailAPI;
use garethp\ews\API\ExchangeWebServices;
try {
// $api = ExchangeAutodiscover::getAPI('xxxxx', 'xxxxxx', 'xxxxxxx');
$api = MailAPI::withUsernameAndPassword('xxxxxx', 'xxxxxxx', 'xxxxxxxx', [
'version' => ExchangeWebServices::VERSION_2007_SP1
]);
$mail = $api->getMailItems();
echo "<pre>";
print_r($mail);
echo "</pre>";
}
catch (UnauthorizedException $exception) {
echo "UnauthorizedException " . $exception->getMessage();
}
catch (AutodiscoverFailed $exception) {
echo "AutodiscoverFailed " . $exception->getMessage();
}
catch (Exception $exception){
echo "Exception " . $exception->getMessage();
}
Then I got this:
Exception Exchange Web Services are not currently available for this request because there are no available Client Access Services Servers in the target AD Site.
this server has accounts in exchange 2013 and exchange 2007, with exchange 2013 I dont have problems, but with old I get those errors.
Autodiscovery throw unknown VERSION_2007_SP3 :-)
Regards
from php-ews.
Regarding VERSION_2007_SP1
not working, it looks like a problem with your CAS server, I can't help you with that. I'll note this for the Autodiscovery however
from php-ews.
Thanks @Garethp I will report it to sysadmin, exchange is like a black box for me. Regards.
from php-ews.
Related Issues (20)
- Upgrade from jamesiarmes -> garethp php-ews HOT 1
- Create a contact
- internetMessageHeaders HOT 1
- BUG FreeBusyResponse array HOT 1
- toRecipients getting null values for inplace archive mails
- Update Mail Item -> Categorize Email HOT 1
- PHP 8.2 - Deprecated dynamic properties HOT 5
- Oauth is not working with Exchange 2013
- Issue with using toRecipients property in EWS restriction HOT 2
- Daylight Savings
- How to get medias appointment
- Update contact with ExtendedProperty
- Exceptions
- Set a calendar event with custom identifier, so that I can (later on) GET an event by the same identifier HOT 3
- Change "busy" status for event. HOT 2
- Checking if an item exists (by $itemId and $changeKey) results in FATAL ERROR if the object is not found - How to handle this? HOT 1
- Also delete recurring events when master event is deleted? HOT 1
- getLegacyFreeBusyStatus() does not return WorkingElsewhere HOT 1
- Authentication error after Exchange Extended Protection was enabled HOT 2
- Add Kerberos support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-ews.