#1  
Old 2nd December 2009, 18: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
  #2  
Old 21st January 2010, 16: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:

$client->__setSoapHeaders(
new SOAPHeader('http://schemas.microsoft.com/exchange/services/2006/types',
'RequestServerVersion',
array("Version"=>"Exchange2007_SP1"))
);

$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.

Regards
Reply With Quote
  #3  
Old 12th October 2010, 12: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

Hi,

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
Reply

Bookmarks

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 19:43
(PHP / SOAP / Exchange )Talking SOAP with Exchange Mars90 HOWTO-Related Questions 3 12th October 2010 12:41
Exchange beating Postfix to the punch dwygant Installation/Configuration 4 22nd April 2009 22:21
Postfix integration with Exchange Server vinu Server Operation 3 25th June 2008 21:43
Postfix & Exchange random.guy Server Operation 1 25th May 2006 14:51


All times are GMT +2. The time now is 14:28.


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