Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-11-2008, 09:26 AM
Starter Member
 
Posts: 2
Exclamation Cancel And Modify Appointments SOAP Question

Hi,
I am a developer using SOAP and VB.NET to communicate with Zimbra (4.5 I think).
I am attempting to cancel and modify appointments and am getting the
following error returned:
The remote server returned an error: (500) Internal Server Error.

Here is a sample of the cancel request that is getting sent following the
auth request:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:zimbra">
<authToken>AUTH_TOKEN_RETURNED</authToken>
<sessionId>###</sessionId>
</context>
</soap:Header>
<soap:Body>
<CancelAppointmentRequest
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="###" comp="###-###" xmlns="urn:zimbraMail">
<m>
<e t="o" p="Personal Name" a="myuser@mydomain.com" d="Friendly Name" />
<su>Canceling Appointment</su>
<mp ct="text/plain">
<content>Canceling This Appointment</content>
</mp>
</m>
</CancelAppointmentRequest>
</soap:Body>
</soap:Envelope>

Here is the Modify Request:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:zimbra">
<authToken>AUTH_TOKEN_RETURNED</authToken>
<sessionId>###</sessionId>
</context>
</soap:Header>
<soap:Body>
<ModifyAppointmentRequest
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="###" comp="###-###"
xmlns="urn:zimbraMail">
<m l="10">
<inv>
<tz id="Central Standard Time" stdoff="-300" />
<comp status="TENT" loc="Changed Hospital Name" fb="O" fba="B"
name="Procedure Name">
<s d="00010101T060000Z" />
<e d="00010101T060000Z" />
<desc>Something goes here</desc>
<or a="user@mydomain.com" d="Friendly Name"
sentBy="user@mydomain.com" lang="en-US" />
<at a="myuser@mydomain.com" d="Friendly Name"
sentBy="user@mydomain.com" lang="en-US" role="NON" ptst="NE" />
</comp>
</inv>
<mp ct="multipart/alternative" />
</m>
</ModifyAppointmentRequest>
</soap:Body>
</soap:Envelope>

My CreateAppointmentRequest is working wonderfully.
Is there something I am missing or have incorrect?
Reply With Quote
  #2 (permalink)  
Old 01-11-2008, 10:00 AM
Zimbra Employee
 
Posts: 1,434
Default

Is there an error in the Zimbra server's mailbox.log when you try these SOAP requests?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 01-11-2008, 11:18 AM
Starter Member
 
Posts: 2
Default Re: Cancel And Modify Appointments SOAP Question

I do not know, I did not set up the server.
I will try to find out.
Thank you
__________________
Noleman
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.