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 using PHP to send an sms via skype I
Does anyone have any experience getting MSTest to copy hibernate.cfg.xml properly to the output
Does anyone have any experience with how well web services build with Microsoft's WCF
Does anyone have any experience hosting the Windows Workflow designer surface? I've seen a
Does anyone have any experience in using compression on their cached data? I understand
Does anyone have any experience migrating from one DBMS to another? If you have
Does anyone have any experience with doing this? I'm working on a Java decompiler
Does anyone have any experience with installing the Visual Studio Isolated Shell and using
Does anyone have any experience that indicates what kind of performance hit a developer
Does anyone have any experience querying FlexLM? (At a minimum) I need to be

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.