Creating an appointment in an exchange calendar using webdav (slide)

Hello!
I am new in webdav. I am trying for a long time to create an appointment in
an exchange calendar (pubic folder) using webdav but without success.
I am despairing.
Here my programm:
String strCalendarURI = "http://server/public/test1";
HttpURL hrl = new HttpURL(strCalendarURI);
hrl.setUserinfo("user", "pw");
WebdavResource wdr = new WebdavResource(hrl);
wdr.setDebug(1);
Hashtable props = new Hashtable();
props.put(new PropertyName("DAV:", "contentclass"), "urn:content-classes:appointment");
props.put(new PropertyName("DAV:", "contentclass"), "urn:content-classes:appointment");
props.put(new PropertyName("http//schemas.microsoft.com/exchange", "outlookmessageclass"), "IPM.Appointment");
props.put(new PropertyName("urn:schemas:httpmail","subject"), "Changed Test Appointment Subject");
props.put(new PropertyName("urn:schemas:httpmail","htmldescription"), "Let's meet                here");
props.put(new PropertyName("urn:schemas:calendar","location"), "do");
props.put(new PropertyName("urn:schemas:calendar","dtstart"), "2006-01-01T10:00:00.000Z");
props.put(new PropertyName("urn:schemas:calendar", "dtend"), "2006-01-01T10:30:00.000Z");
props.put(new PropertyName("urn:schemas:calendar","instancetype"), "0");
props.put(new PropertyName("urn:schemas:calendar","alldayevent"), "0");
props.put(new PropertyName("urn:schemas:calendar","responserequested"), "1");
props.put(new PropertyName("urn:schemas:calendar","busystatus"), "BUSY");
props.put(new PropertyName("urn:schemas:calendar","meetingstatus"), "CONFIRMED");
props.put(new PropertyName("header", "to"), "user");
props.put(new PropertyName("urn:schemas:mapi","finvited"), "1");
out.print("returned value ...     " + wdr.proppatchMethod(props, true));
The output:
to server ---------------------------------------------------PROPPATCH /public/test1 HTTP/1.1
Authorization: Basic Qi5XZWl0bGFuZXI6c3NvYg==
Content-Type: text/xml; charset=utf-8
User-Agent: Jakarta Commons-HttpClient/2.0final
Host: server
Content-Length: 1068
<D:propertyupdate xmlns:D="DAV:">
<D:set>
<D:prop>
<responserequested xmlns="urn:schemas:calendar">
1
</responserequested>
<dtend xmlns="urn:schemas:calendar">
2006-01-01T10:30:00.000Z
</dtend>
<meetingstatus xmlns="urn:schemas:calendar">
CONFIRMED
</meetingstatus>
<to xmlns="header">
user
</to>
<instancetype xmlns="urn:schemas:calendar">
0
</instancetype>
<outlookmessageclass xmlns="http//schemas.microsoft.com/exchange">
IPM.Appointment
</outlookmessageclass>
<location xmlns="urn:schemas:calendar">
do
</location>
<alldayevent xmlns="urn:schemas:calendar">
0
</alldayevent>
<dtstart xmlns="urn:schemas:calendar">
2006-01-01T10:00:00.000Z
</dtstart>
<htmldescription xmlns="urn:schemas:httpmail">
Let's meet here
</htmldescription>
<finvited xmlns="urn:schemas:mapi">
1
</finvited>
<D:contentclass>
urn:content-classes:appointment
</D:contentclass>
<v xmlns="urn:schemas:contacts">
1
</v>
<subject xmlns="urn:schemas:httpmail">
Changed Test Appointment Subject
</subject>
<busystatus xmlns="urn:schemas:calendar">
BUSY
</busystatus>
</D:prop>
</D:set>
</D:propertyupdate>
<<<<<<< from server ---------------------------------------------------
HTTP/1.1 207 Multistatus
Date: Wed, 25 Jan 2006 08:38:54 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
MS-Exchange-Permanent-URL: http://server/public/-FlatUrlSpace-/ddd97380fa9bf5429d9fdc31ddb24cd9-288e4
Repl-UID: <rid:ddd97380fa9bf5429d9fdc31ddb24cd9000000000529>
Content-Type: text/xml
Content-Length: 617
ResourceTag: <rt:ddd97380fa9bf5429d9fdc31ddb24cd9000000000529ddd97380fa9bf5429d9fdc31ddb24cd9000000000879>
MS-WebStorage: 6.5.7638
<a:multistatus
xmlns:a="DAV:"
xmlns:b="urn:schemas:calendar"
xmlns:c="header"
xmlns:d="http//schemas.microsoft.com/exchange"
xmlns:e="urn:schemas:httpmail"
xmlns:f="urn:schemas:mapi"
xmlns:g="urn:schemas:contacts">
<a:response>
<a:href>
http://server/public/test1
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<b:responserequested>
</b:responserequested>
<b:dtend>
</b:dtend>
<b:meetingstatus>
</b:meetingstatus>
<c:to>
</c:to>
<b:instancetype>
</b:instancetype>
<d:outlookmessageclass>
</d:outlookmessageclass>
<b:location>
</b:location>
<b:alldayevent>
</b:alldayevent>
<b:dtstart>
</b:dtstart>
<e:htmldescription>
</e:htmldescription>
<f:finvited>
</f:finvited>
<a:contentclass>
</a:contentclass>
<g:v>
</g:v>
<e:subject>
</e:subject>
<b:busystatus>
</b:busystatus>
</a:prop>
</a:propstat>
</a:response>
</a:multistatus>
to server ---------------------------------------------------PROPFIND /public/test1 HTTP/1.1
Authorization: Basic Qi5XZWl0bGFuZXI6c3NvYg==
Content-Type: text/xml; charset=utf-8
User-Agent: Jakarta Commons-HttpClient/2.0final
Host: server
Content-Length: 207
Depth: 0
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:displayname>
</D:displayname>
<D:getcontentlength>
</D:getcontentlength>
<D:getcontenttype>
</D:getcontenttype>
<D:resourcetype>
</D:resourcetype>
<D:getlastmodified>
</D:getlastmodified>
<D:lockdiscovery>
</D:lockdiscovery>
</D:prop>
</D:propfind>
<<<<<<< from server ---------------------------------------------------
HTTP/1.1 207 Multistatus
Date: Wed, 25 Jan 2006 08:38:54 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
Content-Type: text/xml
Accept-Ranges: rows
MS-WebStorage: 6.5.7638
Transfer-Encoding: chunked
<a:multistatus
xmlns:a="DAV:"
xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:c="xml:">
<a:response>
<a:href>
http://server/public/test1/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
test1
</a:displayname>
<a:getcontentlength b:dt="int">
0
</a:getcontentlength>
<a:resourcetype>
<a:collection>
</a:collection>
</a:resourcetype>
<a:getlastmodified b:dt="dateTime.tz">
2006-01-25T08:38:54.755Z
</a:getlastmodified>
<lockdiscovery xmlns="DAV:">
</lockdiscovery>
</a:prop>
</a:propstat>
<a:propstat>
<a:status>
HTTP/1.1 404 Resource Not Found
</a:status>
<a:prop>
<a:getcontenttype>
</a:getcontenttype>
</a:prop>
</a:propstat>
</a:response>
</a:multistatus>
It looks not so bad. But no appointment is created.
Where is the problem?
When i google for the problem i always find howtos for .NET but nearly nothing for java
Thank you for your help.
best regards
Bernhard

I am working in same topic so please if you have been sloved it send it to me.
I will be very thankfull for you.
Thanks

Similar Messages

  • Create an appointment in sap office calendar

    Hello Gurus,
    I should create an appointment in sap office calendar when the task is released.
    This appointment should have :
    as definition task = title appointment
    definition project = description appointment
    finish date task = date appointment
    Somebody know some bapi for this functionality?
    thanks in advance
    Vanessa

    EXACT same problem.  Eagerly awaiting any helpful reply.

  • How to share an Exchange calendar using MAC OS 10.8.3

    I am trying to share an Exchange calendar with Mountain Lion. Does anybody know how to do this?
    Thanks!

    Hey newly Iphone,
    Welcome to Apple Support Communities! I found a couple of articles that should be able to assist you.
    If you're wanting to share a calendar account with people who use the same calendar service, check out the following article:
    iCal 5.x: Share a calendar account
    http://support.apple.com/kb/PH4742
    If you're just wanting to set up your Exchange calendar on Mountain Lion's iCal, then you want to check out this one:
    iCal 5.x: Set up a calendar account in iCal
    http://support.apple.com/kb/ph4737
    Have a good one,
    David

  • How get recently created and updated events from google calendar using pl/s

    Hello
    I am able to get Google calendar events using pl/sql..I am receiving huge xml code(if there are more events),want only update and recently created events instead of getting repeated events.please help me in this regard.
    Thanks
    Edited by: user12180635 on Mar 2, 2012 1:49 AM

    This is the forum SQL Developer (Not for general SQL/PLSQL questions).
    Your question would probably be better in a Google forum since the answer is probably somewhere in google's API. Or if you want to extract items from your file, try the SQL and PL/SQL forum here, or possibly one of the XML development forums.

  • Exchange calendar not in calendar list on PRE

    So after 3 weeks of working on getting exchange set-up I finally did it.  Contacts and Email work great but the Calendar shows up in my account list but when I go through my calendar's via the drop down menu at the top right in the calendar view, my exchange calendar does not show up.  Events that I set-up on my computer show as blocked out time on my PRE but I am unable to access the event.  The exchange calendar is not in the list of available calendars to make a default calendar and I'm also unable to create new events to the exchange calendar.  It does not even show up as an available calendar in the list.
    Someone please help.
    Dan M
    Lombard, IL 
    Post relates to: Pre p100eww (Sprint)
    This question was solved.
    View Solution.

    I seem to be having the same or a similar problem.  Exchange does not show up in the drop down on the default calendar list or in the drop down where it normally says "All" on the main calendar page.  Exchange is properly setup and I even get notifications for my exchange appointments, but I also have issues viewing those appointments.  I'm not sure if the issue in this thread has these issues too:
    * The appointments are not displayed in the calendar on my Pre
    * The Pre calendar will look like it is trying to find the appointments for the day I am viewing and never finishes (i.e. it will gray out like it does when you first switch the dat, but it never recovers!).  At this point, I can't even swipe left or right to move day to day.
    I followed the advice of some other threads, and tested moving all my appointments into a backup calendar that wouldn't be sync'ed into the calendar on my Pre.  When I do this, I don't have that "grayed out" problem, but obviously I don't have any appointments from Exchange to look at.  Once I add one appointment back into my calendar from Outlook on my PC, sync my Pre calendar, and exit and re-open the calendar, the Pre gets back into that grayed out state and doesn't display the appointment.
    Any advice for this one?  (This is on OS 1.1.0)
    -Dave

  • ICal not displaying Exchange calendar form delegate

    I have a very strange problem. I use iCal with Exchange 2007 and do have several delegates as read-only in their calendar. It works extremely well, except for one of them which can't be displayed. I got the following message : iCal can’t refresh the account “Manuel Moutoy”.
    When I log on to a PC with outlook, I can perfectly access this calendar which makes me think the problems lies in iCal. I tried removing the user and re-adding him several times, but that did not change anything.
    Can anyone help?
    Thanks, Jean-Francois.

    Anyone else seeing repeated crashing with iCal connected up with delegate accounts?
    I have successfully gotten 6 delegate accounts showing up properly in the main iCal window. Here is what worked for me when an account did not appear.
    Note: This will delete all local calendar data and require you reconfigure your accounts and delegates. In other words, this assumes ONLY server-based / Exchange calendars used in iCal.
    1. Got to preferences
    2. Deleted the account from the Delegate tab
    3. Close iCal
    4. Navigate to ~/Library/Calendars and delete all files/folders there
    5. Relaunch iCal and reconfigure primary Exchange account
    6 Re-add delegates into iCal, waiting for each calendar to full sync down to local cache before adding additional calendars
    Hope this helps!

  • I am automating the process of sending appointment reminders to my clients. I started with an alert with an email in calendar using the clients email address as a custom entry in my me card in my contacts. this was resulting in three emails being sent wit

    I am automating the process of sending appointment reminders to my clients. I started with an alert with an email in calendar using the clients email address as a custom entry in my me card in my contacts. this was resulting in three emails being sent with slightly different versions of the same address (see my previous post). Heating someone else's suggestion I created a workflow file to send an email and calling that file from an alert on my calendar. This is working and sends only one email to the client.
    My calendar is on I cloud and I access it from three different computers so I can keep my appointment calendar current. The files that send the email only exist on one computer. My other computers show error messages when those emails get sent. It seems that each computer wants to send the email. It's a small problem but is there a way that I could not get those alerts.
    But appreciate any thoughts about this. It seems like both problems might be related to the iCloud system.
    Thank you in advance,
    Michael

    Good work, catch so far Michael, does seem to be a "feature" of iCloud syncing, not sure what you could do to disable it.

  • Ipad - how to push Exchange calendar events to iCloud account? MobileIron is used to get Exchange data -- is there an app to push the ipad version of the events to iCloud?

    ipad - how to push Exchange calendar events to iCloud account? MobileIron is used to get Exchange data -- is there an app to push the ipad version of the events to iCloud?
    There are two separate calendars on ipad (ios 7.1) one for icloud, one fo exchange. I have tried a couple of calendar apps and while they do a good job of showing the events in the app - they don't push (synch) back to iCloud. Any thoughts on an app that will take my ipad calendars and synch them to a single icloud calendar/account?
    Thanks

    Hi
    You asked about a recommendation for an app to paste a group of addresses into the To, Cc or Bcc fields of an email?
    Our "MailShot Pro" app is the only one we know of on the App Store that creates special "group contacts" in your address book which contain all your groups email addresses, but can be used just like regular contacts from most of your favourite apps. We now have nearly 50000 people using it, and growing steadily every day.
    Here is a link if you would like to know more “MailShot Pro” (itunes link).
    A free version is also available if you'd like to try it out with a small nmber of contacts.
    If you need any customer support just contact us at the website, we're always happy to help.
    Peter
    www.solubleapps.com
    Disclosure: I am the developer of this app and may benefit from its sale- (but so might you)

  • ICal - problem creating events in Exchange calendar

    Hi All, this is a weird one to describe, so please bear with me...!
    My client is on Snow Leopard at the moment, so does not yet have access to iCloud (upgrading remains an option but he is in no hurry). He is, however, having a confusing time of it using iCal on his Macbook.
    He has linked iCal to his corporate Exchange account, and certainly he can view all the events within his iCal. However, when he creates a new event, it does not get created within the Exchange calendar, but rather in his local calendar, and then gets overlaid, visually, on top of the Exchange calendar. Consequently, this created event does not synchronise with his iPhone, because it is only "known about" on his local MacBook. Sorry if this sounds a little confusing, but do you guys see the problem?
    Another, minor-ish, point is that the new event he creates locally always gets colour coded in a way that he seems to have no control over. Can anyone explain how the colour coding gets determined when a new event is posted?
    To sum up then, he seems only to be able to read events in his Exchange calendar, but cannot add events in a way that they then get synced correctly.
    Paul

    I just barely had this problem.  I restarted the program and it worked.

  • IPhone calendar appointments set to local calendar, and need to switch to exchange calendar. Have to edit each appointment one at a time and change to exchange calendar. Is there any method to edit all appoints in my calendar at once?

    iPhone calendar appointments set to local calendar, and need
    to switch to exchange calendar. Have to edit each appointment one at a time and
    change to exchange calendar. Is there any method to edit all appoints in my
    calendar at once and change the calendar setting?

    Not sure this will work but if you go into the Keyboard preferences, then click the Keyboad Shortcuts tab, and then the '+', you can add your own shortcuts for any application.  I am not sure what happens if you try to override an existing shortcut since I haven't tried using this.
    Edit/Update:
    Probably against my better judgement I'll also throw this out there - there's an Unsanity haxie called Menumaster which might also allow you to do what you want.  Against my better judgement because personally I stay clear of haxies.  It's (all haxies) probably almost certain to break in Lion.  They always do with each major release.

  • Problems with a shared calendar using Outlook 2007 and Exchange 2010

    Hello all,
    We are having a problem with sharing a calendar using Outlook 2007 and Exchange 2010.
    I will start with some background. I have just started my position with this company. I have been working with networks for awhile at the small business level. I have not had much production experience with exchange. There is only myself and my supervisor
    who has inherited a midsized network which was built by five previous techs that are no longer with the company. Of course, the previous techs did not leave much documentation, so the original hows and whys for our system setup has been lost.
    One of the managers has a calendar she shares with some of our users. I believe this calendar has been in use since sometime in 2006. A mailbox was created to hold this calendar to keep it separate from the managers calendar. I am not sure what version
    of exchange they were using at that time, but I assume there was one or two migrations of it getting to its current state on our exchange 2010 server. At some point it was observed that the other workers she was sharing with were not able to access it correctly.
    I am not fully sure what the original problem was (possibly some people not being able to see or connect to the calendar), but it was decided to give everyone who needed access to this calendar full access permissions through exchange. Correct me if I
    am wrong, but I believe that gave everyone connected the ability to do anything with the calendar. Of course the manager was not happy about that. This is where I started working on the problem.
    I removed everyone, except the manager who wants to control the calendar, from having "Full Access Permissions". This did have the effect of making some people just able to see the calendar and not make changes. Though there were others that were
    able to connect to the calendar who I thought would not be able to. The manager that originally created the calendar did try to manage access to it through the Outlook interface, though it currently does not seem to be fully in effect.
    So, to get to the point of what we are trying to do, is there a way to get the original manager back into control of the calendar though Outlook? It would be preferred to be able to keep the history of what they tracked of this calendar, so starting a new
    one would be something we would rather avoid. After that, getting all of the users that need to connect to the calendar reconnected with the correct access permissions and making sure they are all synchronized.
    I realize this is a big mess, and your help would be greatly appreciated.

    Hi Nigel,
    How is the impact, just one user or all users, Outlook or OWA?
    If just one user, it seems like an issue on the Outlook Client side.
    Please trying to re-create new profile to fresh the caches.
    Please runing Outlook under safe mode to avoid some AVs, add-ins and firewall.
    Found a similar thread for your reference:
    Calendar Sharing not available error message
    http://social.technet.microsoft.com/Forums/exchange/en-US/d9b33281-d7bb-4608-8025-16fb26643d0d/calendar-sharing-not-available-error-message?forum=exchangesvrclientslegacy
    Hope it is helpful
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • How can I get autofill to use my contacts when creating an appointment ?

    I'm looking for a quick and easy way to create an appointment form a contact or at least have the calendar app autofill from my contacts.

    Most likely the library blocks the ports needed for sending and receiving mail. Check with them.
    ''some Thunderbird setting that prevents Thunderbird from working, maybe because it considers this a vulnerable network.''
    There is no such Thunderbird setting.

  • Will indesign allow me to create a calendar using the lunar cycle?

    I need to be able to create a calendar using the lunar cycle instead of the standard gregorian cycle. Does Indesign's calendar wizard/software allow me to do this or would I have to create it manually through something like photoshp/illustrator?

    InDesign does not come with a Calender Wizard script, so you probably downloaded this elsewhere. you'll have to ask where you got it from.
    (If this "lunar cycle" thing is not in the feature list of that script, chances are it's not hidden in there somewhere either. If I included such a feature, I'd make sure to advertise it. If it isn't available, you can probably contact the author and see if s/he is willing to add it.)

  • Appointments emailed from iCloud calendar in Outlook are not received on IOS device using exchange calendar.

    I email tons of appointment invitations from my iCloud calendar in Outlook.  Appointments synch to IOS devices and are on icloud.com.  People receive invitations in Outlook and on IOS devices.  My husband runs IOS devices with exchange calendars.  He never receives the appointment invitations.  All of the appointment invitations are on his iCloud.com account.  Can he synch to both exchange and iCloud?  WIll this allow him to see the invitations I send that are hung up in iCloud?

    Could be a corrupt item, this usually fixes it if that is the case
    Backup device then in Outlook
    highlight calendar
    goto file import/export
    choose export to file
    choose Persoanl folder pst, next
    make sure calendar is highlighted and choose subfolders if you have them, next
    save to desktop with a name you can remember, Finish
    Click ok on screen popup
    Go to view, arange by events
    delete all entries.
    close outlook and any word files, open outlook back up after 15 seconds.
    Then
    goto file import/export
    import from another program or file, next
    choose Persoanl folder pst, next
    find the file and import
    Choose highlight calendar and Finish
    Change view back to what you want and try again.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Create an ical from a users exchange calendar with ews

    Hello,
    is there a way to export (save) a users calendar as an ics file over ews?
    Regards
    Ioannis

    Hi,
    To save our calendar as .ics file, we can just follow the steps below to save it.
    1. Click on Calendar in Outlook.
    2. File > Save Calendar, click More Option to range the date.
    If you prefer to export or save user's calendar using EWS, I would like to ask the question on the Exchange development forum which is staffed by more experts specializing in this kind of problems to get better help.
    Here is the link for Exchange Server Development forum:
    https://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrdevelopment
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

Maybe you are looking for

  • Error: A file, directory or orther piece of data could not be found error-32

    Hi Everyone, Could anyone tell me why i am getting this error when i try to install new Labview 8.6 with other toolkits from NI developer suite DVD. This happened after DVD 1 is completed. The installation manager asked me to load DVD 2. As soon i lo

  • Why is my Powerbook so slow

    Hello. I know my powerbook is old. But it is so slow. I can not run anything at a normal speed. For exmaple, i was watching a podcast on itunes and had firefox open and the podcast's audio went out of sync. Is there anyway to see what is slowing it d

  • How to set a fixed speed?

    dear friends, could you shed some light on this? I have a linksys WTR54G router and five PCs connected to it. I'd like to know how to set a fixed speed so that every pc gets the same speed, which would be fair to everybody. Thank you 

  • Does anybody know why in system preferences Quicktime is not displayed

    Does anyone know why in Systems Preferences Quicktime is not displayed? thanks

  • CC Desktop says: "Sync incomplete", so... now what ?

    Since a couple of days I get this disturbing red warning sign in my CC icon and panel, telling me that my "Sync is incomplete". Curious to know what triggers it and what to do about it, I hit the "More info" button, but it merely brings me to some st