Results 1 to 2 of 2

Thread: Canceling appointment via SOAP

  1. #1
    Join Date
    Sep 2012
    Posts
    6
    Rep Power
    3

    Default Canceling appointment via SOAP

    Hello!

    I'm trying to canceling an appointment via SOAP. I've successufuly created an appointment via SOAP. But 'm getting and error when trying to cancel.
    INVALID_REQUEST: missing invId subpart: id should be specified as "item-inv". I searched everywere but i can't find any solution.

    Code:
    <soap:Envelope
    	xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
    	xmlns:zmail="urn:zimbraMail">
    	<soap:Header>
    		<zimbra:context xmlns="urn:zimbraSoap">
    			<zaccount:authToken>@USERTOKEN</zaccount:authToken>
    		</zimbra:context>
    	</soap:Header>
    	<soap:Body>
    		<zmail:CancelAppointmentRequest id="@ID">
    		</zmail:CancelAppointmentRequest>
    	</soap:Body>
    </soap:Envelope>
    Thanks in advanced!

  2. #2
    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    2

    Default

    Quote Originally Posted by jcosta View Post
    Hello!

    I'm trying to canceling an appointment via SOAP. I've successufuly created an appointment via SOAP. But 'm getting and error when trying to cancel.
    INVALID_REQUEST: missing invId subpart: id should be specified as "item-inv". I searched everywere but i can't find any solution.

    Code:
    <soap:Envelope
    	xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
    	xmlns:zmail="urn:zimbraMail">
    	<soap:Header>
    		<zimbra:context xmlns="urn:zimbraSoap">
    			<zaccount:authToken>@USERTOKEN</zaccount:authToken>
    		</zimbra:context>
    	</soap:Header>
    	<soap:Body>
    		<zmail:CancelAppointmentRequest id="@ID">
    		</zmail:CancelAppointmentRequest>
    	</soap:Body>
    </soap:Envelope>
    Thanks in advanced!

    You need this:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header/>
      <soap:Body>
        <CancelAppointmentRequest xmlns="urn:zimbraMail" id="320-319" comp="0">
          <inv id="320-319" method="none" compNum="0" rsvp="1"/>
        </CancelAppointmentRequest>
      </soap:Body>
    </soap:Envelope>
    Must include the inv id, which is like your appt id but with this dash and number added onto it.

Similar Threads

  1. Delete an Appointment via SOAP ?
    By minhle3012 in forum Developers
    Replies: 9
    Last Post: 09-26-2012, 07:47 PM
  2. PHP SOAP create appointment example
    By AddGun in forum Developers
    Replies: 13
    Last Post: 09-27-2010, 04:41 PM
  3. Canceling appointments through SOAP
    By gdeyoung in forum General Questions
    Replies: 7
    Last Post: 04-16-2008, 08:25 AM
  4. Replies: 0
    Last Post: 04-08-2008, 02:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •