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?