Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6255503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:22:37+00:00 2026-05-24T14:22:37+00:00

Does anyone have any experience with php-ews? I would like to add a new

  • 0

Does anyone have any experience with php-ews? I would like to add a new appointment to an Exchange 2007 calendar through php-ews but I’m not sure how. The documentation for php-ews is very limited. Has anyone done this before and care to provide and example?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T14:22:39+00:00Added an answer on May 24, 2026 at 2:22 pm

    Ugh. I went through this a few weeks ago. Documentation for this sucks. Feel free to ask me any questions about PHP and EWS.

    So assuming you mean you want to create a new Calendar event for some user’s calendar, you need to begin by downloading James Armes’s Exchange Web Services client: http://code.google.com/p/php-ews/source/browse/

    It’s a series of PHP classes which make it easy to access an Exchange server through PHP.

    You then create an ExchangeWebServices object

    $ews = new ExchangeWebServices(
    'server address',
    'username@address',
    'password'
    );
    

    From there you can construct SOAP XML requests by constructing a “request” object in PHP where the attributes of the object are the layers of the SOAP request.

        $request->SendMeetingInvitations = 'SendToNone';
        $request->SavedItemFolderId->DistinguishedFolderId->Id = 'calendar';
        $request->Items->CalendarItem->Subject = 'this is the subject of the email';
        $request->Items->CalendarItem->Start = date('c', strtotime('today'));
        //making this an all day event for the heck of it
        $request->Items->CalendarItem->End = date('c',  strtotime('today + 1 day'));
        $request->Items->CalendarItem->IsAllDayEvent = true;
        $request->Items->CalendarItem->LegacyFreeBusyStatus = 'Free';
        $request->Items->CalendarItem->Categories->String = $category;
        $request->Items->CalendarItem->Body->BodyType = 'Text';
        $request->Items->CalendarItem->Body->_ = $body;
    

    And then you send the request to the server:

        $response = $ews->CreateItem($request);
    

    var_dump-ing $response will give you the server response and give you a good idea of how the XML works.

    As for what little documentation there is, the Microsoft docs will tell you how the XML requests are set up (i.e., what attributes to give which objects) and also which methods you can call on your XML requests: http://msdn.microsoft.com/en-us/library/bb204119(v=exchg.140).aspx (see “Operations” and “XML Elements”)

    Hope this helps! Let me know if you have any questions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have any experience of introducing FxCop to legacy code? We would like
Does anyone have any experience using PHP to send an sms via skype I
Does anyone have any experience querying FlexLM? (At a minimum) I need to be
Does anyone have any experience with the following fluent config error? faultString = An
Does anyone have any experience with doing mail merge from Java on a word
Does anyone have any experience of storing data in JavaScript across all mobile platforms
Does anyone have any experience with this sort of thing? I'm talking about applets
Does anyone have any good advice or experience on how to create an engine
Does anyone have any experience positioning the jquery.datepicker found at http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerClickInput.html Functionality-wise it works
I'm using Codeigniter 1.7. Does anyone have any experience of creating web services with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.