Old 2nd December 2009, 19:47
rj_mayer rj_mayer is offline
Junior Member
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Talking to Exchange with SOAP

I am writing from a school in Cambridgeshire, UK.

With reference to the guidance given here: http://www.howtoforge.com/talking-soap-with-exchange.

My aim in this exercise is two fold:

To address Public Folder Calendars and extract items from there for caching into a database and subsequent use on websites/intranets.

To address user accounts and prepopulate their calendars with timetable information extracted from other sources.

I have successfully got a SOAP request talking to the remote Exchange 2007 box using the PHP classes provided - thank for that. I have been able to talk to the account that the credentials are given for and pull out calendar data.

The help I would like is to be given an example of how to set up a SOAP request (preferably in terms of the PHP class mentioned above) to access a Public Folder Calendar and to address another user's Mail Box which the authenticating user has rights to.

After researching through the TechNet website for Public Folder connectivity examples, I have tried the following request for publicfoldersroot:

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

... and I get the following error, which is different to the 'this request is built incorrectly'-type errors, which makes me think I'm going along the right lines:

Fatal error: Uncaught SoapFault exception: [soap11:Client] 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. in D:\www\admin\dev\cambsed\cambsed.php:175 Stack trace: #0 [internal function]: SoapClient->__call('FindItem', Array) #1 D:\www\admin\dev\cambsed\cambsed.php(175): ExchangeNTLMSoapClient->FindItem(Object(stdClass)) #2 {main} thrown in D:\www\admin\dev\cambsed\cambsed.php on line 175

Any help much appreciated.
Reply With Quote
Sponsored Links
Old 21st January 2010, 17:27
aschults aschults is offline
Junior Member
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default RequestServerVersion in SOAP Headers

Hi rj_major,

After some experimenting this worked for me:

new SOAPHeader('http://schemas.microsoft.com/exchange/services/2006/types',

$client is the SoapClient Instance.

I first tried with a similar Version string and got this one back from the Exchange server in an error message.

Reply With Quote
Old 12th October 2010, 13:38
feuxx feuxx is offline
Junior Member
Join Date: Oct 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help me to scann Inbox


I come to you because I have a small problem that is becoming urgent, for one of my projects at work.

I'm stuck and it becomes very urgent, I seek the way to list all emails from my inbox from a primary Exchange server and read its contents and headers ,....

I use the EWS class with a LDAP connection, I can send emails, in listing of Calendar event, to enter the Inbox (or so I think :-)).

Could you please help me
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't get the Talking SOAP With Exchange to work eescudier HOWTO-Related Questions 29 16th July 2013 20:43
(PHP / SOAP / Exchange )Talking SOAP with Exchange Mars90 HOWTO-Related Questions 3 12th October 2010 13:41
Exchange beating Postfix to the punch dwygant Installation/Configuration 4 22nd April 2009 23:21
Postfix integration with Exchange Server vinu Server Operation 3 25th June 2008 22:43
Postfix & Exchange random.guy Server Operation 1 25th May 2006 15:51

All times are GMT +2. The time now is 23:11.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.