New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing RequestServerVersion SOAP header #3
Comments
…he ExchangeWebServices class and passing it in as an option to the SOAP client.
…::__construct() to handle the version property and set it as a SOAP header.
I find it odd that I haven't run into this issue before. I will verify that this is all that is required and take care of it this weekend. Originally posted by jamesiarmes on Google Code: http://code.google.com/p/php-ews/issues/detail?id=3#c1 |
Ah, this fix may work with the ExchangeImpersonation, however i'm unsure, how to impliment this on NTLMSoapClient_Exchange , any thoughts Originally posted by goresci on Google Code: http://code.google.com/p/php-ews/issues/detail?id=3#c2 |
Hi, I've attached a patch that fixes this issue (we were affected as well.) Originally posted by jon.kloske.uq on Google Code: http://code.google.com/p/php-ews/issues/detail?id=3#c3 |
forgot to mention, to use the new code you need to specify the new optional exchange server version parameter to the ExchangewWebServices constructor, like so: <?php
$ews = new ExchangeWebServices('server', 'username', 'password', EWSType_ExchangeVersionType::Exchange2007_SP1); Originally posted by jon.kloske.uq on Google Code: http://code.google.com/p/php-ews/issues/detail?id=3#c4 |
This has been merged into the master branch. I made some changes to your patch, the biggest change being that I added the constants directly to the ExchangeWebServices class rather than adding a new class. I have also added you to the contributors file, thank you for your contribution. Originally posted by jamesiarmes on Google Code: http://code.google.com/p/php-ews/issues/detail?id=3#c5 |
Object generation
What steps will reproduce the problem?
Expected output: succesful response
Got soap error: The request is valid but does not specify the correct server version in the RequestServerVersion SOAP header. Ensure that the RequestServerVersion SOAP header is set with the correct RequestServerVersionValue.
Quick fix: to
NTMLSOAPClient_Exchange::__construct()
, I added this:Obviously, the Exchange2007_SP1 part should be configurable.
Originally posted by kristof.coomans on Google Code: http://code.google.com/p/php-ews/issues/detail?id=3
The text was updated successfully, but these errors were encountered: