Calendar
Back September '10
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Quicksearch
Interesting Sites
Creative Commons
Creative Commons License - Some Rights Reserved
Original content in this work is licensed under a Creative Commons License

Outlook Web Access (Exchange) with PHP and cURL


Trackbacks

No Trackbacks

Comments
Display comments as (Linear | Threaded)

i have used the link to logon.
But is there a way cith curl to do a search and get XML info back.
For the calendar for example?
#1 johan on 2009-05-13 13:26 (Reply)
johan, unfortunately I'm not much of a whiz at cURL at all, which was why I had to find someone else's code to help me out with it. I believe the code from Tyler Hall (list item #3) has some comments in it to help with getting information from the calendar. I haven't tried any of it though. I unfortunately wouldn't know how to get it to work. As for getting XML data back, it's doubtful. There is no API, this is basically web-scraping the HTML to decipher what is available. Exchange 2007 supposedly has an API but I don't yet know if it's finalized, nor will I even have a chance to mess around with it until late 4th quarter this year when ours is scheduled to be installed. Since I'd imagine you're using Exchange 2003, I don't think you'll have access to any API or XML data return; at least not without a third party tool installed on the exchange server itself (of which I cannot recommend any particular product, I'm simply making an assumption that one might exist somewhere).
#2 Brendon Kozlowski (Homepage) on 2009-05-14 09:00 (Reply)
You can het XML from the server.
I have an perl script that does the job, but i can't het it to work unther PHP.
You run an dav search, but i am unable to make it work.

Any point will be great
#3 johan on 2009-05-14 10:33 (Reply)
johan:

Unfortunately I'm not very familiar with Exchange. I do not have access to our server except via the Outlook Web Access page(s). I did not know about WebDAV. With our organization's security policies, I'd imagine our WebDAV is locked down, but I can't verify that at the moment. I did find, thanks to Google, some further code - but I don't think it can be run via PHP (unless PHP is installed on a Windows' server, but at that point, I'd have to ask why even use PHP?).

http://www.msexchange.org/articles/Access-Exchange-2000-2003-Mailbox-WebDAV.html

Hopefully that will help you. I'm sorry I can't really help any further.
#4 Brendon Kozlowski (Homepage) on 2009-05-14 20:29 (Reply)
Dear All,
I am going to make an iPhone application for email, calendar displaying and after little bit of study I found the it will be done by the OWA but I didn't get any API. then I found the above topic which is done by the PHP. I am very much familiar with PHP and cURL. Now my questions are :::::
1) Is there any configuration required into the OWA server to get access by this kind of script?

2) To develop the iPhone application I am using objective C and this process will be little bit lengthy( see. iphone-> our server where is the cURL script is written-> OWA Server)... Is there any other alternative way to do this?

3) Where I get the all the links for getting Inbox, sent Items, Draft, Calendar etc?

4) How to get all the information in XML format?


Please help me....... or you can email me to

subha[*a]excoflare.com

*a = @

Thanks in advance
Subha
#5 Subha (Homepage) on 2010-07-28 05:53 (Reply)
Hello Subha,

Unfortunately you would be better off using an Objective-C based approach if your entire application is being built in Objective-C to begin with. Contacting two separate servers to interact with one external exchange server increases chances for failure. With that in mind, hopefully the following link will be of some use to you:

http://mac.softpedia.com/get/Developer-Tools/OWAParser.shtml

Also, if you do plan on going the route of scraping HTML using cURL, do keep in mind that each version of Outlook Web Access works differently. You would have to update your code for each version of Exchange.

You may also want to research ActiveSync technology by Microsoft. If you're able to get licensing support for it, it should theoretically make your life easier.
#5.1 Brendon Kozlowski (Homepage) on 2010-07-30 12:32 (Reply)

Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

BBCode format allowed