|
exchange
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
problem using updateItem() in Exchange Web ServicesThis is the code that I am using: $UpdateItem->ConflictResolution = "AlwaysOverwrite"; $UpdateItem->ItemChanges->ItemChange->ItemId->Id = $item_id; $UpdateItem->ItemChanges->ItemChange->ItemId->ChangeKey = $change_key; $UpdateItem->ItemChanges->ItemChange->Updates->SetItemField->FieldURI- >FieldURI = "item:ReminderMinutesBeforeStart"; $UpdateItem->ItemChanges->ItemChange->Updates->SetItemField->CalendarItem->ReminderMinutesBeforeStart = "0"; $result = $this->client->UpdateItem($UpdateItem);which translates to: <UpdateItem xmlns="http://schemas.microsoft.com/exchange/services/2006/ messages" ConflictResolution="AlwaysOverwrite" SendMeetingInvitationsOrCancellations="SendToAllAndSaveCopy"> <ItemChanges> <ItemChange> <ItemId Id="AS0Ab3J..." ChangeKey="AAGUomp..." /> <Updates> <SetItemField> <FieldURI FieldURI="item:ReminderMinutesBeforeStart" /> <CalendarItem> <ReminderMinutesBeforeStart>0</ ReminderMinutesBeforeStart> </CalendarItem> </SetItemField> </Updates> </ItemChange> </ItemChanges> </UpdateItem> But this is not working and all I get is the erroe : SOAP-ERROR: Encoding: object hasn't 'Path' property Please help me!!! Thanks On 19 May, 10:16, macca <ptmcna***@googlemail.com> wrote:
Show quoteHide quote > Hi, Im having a problem updating calendar items using EWS and PHP. Anybody?> > This is the code that I am using: > > $UpdateItem->ConflictResolution = "AlwaysOverwrite"; > $UpdateItem->ItemChanges->ItemChange->ItemId->Id = $item_id; > $UpdateItem->ItemChanges->ItemChange->ItemId->ChangeKey = $change_key; > $UpdateItem->ItemChanges->ItemChange->Updates->SetItemField->FieldURI->FieldURI = "item:ReminderMinutesBeforeStart"; > > $UpdateItem->ItemChanges->ItemChange->Updates->SetItemField- > > >CalendarItem->ReminderMinutesBeforeStart = "0"; > > $result = $this->client->UpdateItem($UpdateItem); > > which translates to: > > <UpdateItem xmlns="http://schemas.microsoft.com/exchange/services/2006/ > messages" > ConflictResolution="AlwaysOverwrite" > SendMeetingInvitationsOrCancellations="SendToAllAndSaveCopy"> > <ItemChanges> > <ItemChange> > <ItemId Id="AS0Ab3J..." ChangeKey="AAGUomp..." /> > <Updates> > > <SetItemField> > <FieldURI FieldURI="item:ReminderMinutesBeforeStart" /> > <CalendarItem> > <ReminderMinutesBeforeStart>0</ > ReminderMinutesBeforeStart> > </CalendarItem> > </SetItemField> > > </Updates> > </ItemChange> > </ItemChanges> > </UpdateItem> > > But this is not working and all I get is the erroe : SOAP-ERROR: > Encoding: object hasn't 'Path' property > > Please help me!!! > > Thanks On 21 mai, 12:20, macca <ptmcna***@googlemail.com> wrote:
Show quoteHide quote > On 19 May, 10:16, macca <ptmcna***@googlemail.com> wrote: Hi,> > > > > Hi, Im having a problem updating calendar items using EWS and PHP. > > > This is the code that I am using: > > > $UpdateItem->ConflictResolution = "AlwaysOverwrite"; > > $UpdateItem->ItemChanges->ItemChange->ItemId->Id = $item_id; > > $UpdateItem->ItemChanges->ItemChange->ItemId->ChangeKey = $change_key; > > $UpdateItem->ItemChanges->ItemChange->Updates->SetItemField->FieldURI->FieldURI = "item:ReminderMinutesBeforeStart"; > > > $UpdateItem->ItemChanges->ItemChange->Updates->SetItemField- > > > >CalendarItem->ReminderMinutesBeforeStart = "0"; > > > $result = $this->client->UpdateItem($UpdateItem); > > > which translates to: > > > <UpdateItemxmlns="http://schemas.microsoft.com/exchange/services/2006/ > > messages" > > ConflictResolution="AlwaysOverwrite" > > SendMeetingInvitationsOrCancellations="SendToAllAndSaveCopy"> > > <ItemChanges> > > <ItemChange> > > <ItemId Id="AS0Ab3J..." ChangeKey="AAGUomp..." /> > > <Updates> > > > <SetItemField> > > <FieldURI FieldURI="item:ReminderMinutesBeforeStart" /> > > <CalendarItem> > > <ReminderMinutesBeforeStart>0</ > > ReminderMinutesBeforeStart> > > </CalendarItem> > > </SetItemField> > > > </Updates> > > </ItemChange> > > </ItemChanges> > > </UpdateItem> > > > But this is not working and all I get is the erroe : SOAP-ERROR: > > Encoding: object hasn't 'Path' property > > > Please help me!!! > > > Thanks > > Anybody? I think it's a problem with the PHP SOAP implementation. This bug is reported to php.net : http://bugs.php.net/bug.php?id=47924 Hi Julien, thanks for the response,
Thanks for pointing that to to me, I had a sneaking suspicion that it may be a PHP SOAP problem from what I've seen elsewhere. I'll follow the bug report on php.net and look for another SOAP solution. Regards, Paul
Unable to email domain, no MX record but A record available
Disable Out of Office Assistant Hide domain from email address sending spam exchange 2003 internet configuration Multiple Exch2007 DR and HA questions Alias Restore a single mailbox in Exchange 2003 RE: Need free MS Exchange Server that can sync with Smartphone Advice on FAX Servers needed |
|||||||||||||||||||||||