[SOLVED] send appointment req just created

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
G71
Posts: 23
Joined: Fri Aug 19, 2016 10:01 am

[SOLVED] send appointment req just created

Post by G71 »

Dear,

I'm going to search the attribute in order to send the appointment request.
The soap call "CreateAppointmentRequest" works fine and it adds a new appointment on the Calendar. Unfortunately it doesn't sends the notification email to each user included into the appointment.

However, if I open the new appointment just created, I will be able to send the notification via zimbra web interface. So, I guess that is only a "attribute/tag" missing problem...

Do you know wich is mistake?

Code: Select all

<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header>  
    <context xmlns="urn:zimbra" xmlns:axis2ns1="urn:zimbra">
      <axis2ns1:authToken>myToken</axis2ns1:authToken>
    </context>
  </soapenv:Header>
  <soapenv:Body>
    <axis2ns5:CreateAppointmentRequest xmlns:axis2ns5="urn:zimbraMail" xmlns="urn:zimbraMail" xmlns:axis2ns6="urn:zimbraMail" forcesend="1">
      <axis2ns6:m l="280" su="Oggetto: Nuovo Appuntamento da JAVA">
        <mp ct="multipart/alternative">
          <mp content="blabla Content" ct="text/plain"/>
        </mp>
        <inv>
          <comp xmlns:axis2ns16="urn:zimbraMail" xmlns:axis2ns15="urn:zimbraMail" xmlns:axis2ns14="urn:zimbraMail" xmlns:axis2ns13="urn:zimbraMail" xmlns:axis2ns17="urn:zimbraMail" xmlns:axis2ns12="urn:zimbraMail" xmlns:axis2ns11="urn:zimbraMail" allDay="0" draft="0" fb="B" loc="Filiale di Monza" name="MIO_OGGETTO" noBlob="1" status="CONF">
            <axis2ns11:at a="test@zsadasd.ss" ptst="NE" role="REQ" rsvp="1"/>
            <axis2ns12:at a="rwwer@werwer.com" ptst="NE" role="REQ" rsvp="1"/>
            <axis2ns13:or a="rwrwe@xxxxx.vv" d="Amministrazione"/>
            <axis2ns14:s d="20160922T093023"/>
            <axis2ns15:e d="20160922T103023"/>
            <axis2ns16:descHtml>DESC_HTML</axis2ns16:descHtml>
            <axis2ns17:desc>DESC_NORMALE</axis2ns17:desc>
          </comp>
        </inv>
      </axis2ns6:m>
    </axis2ns5:CreateAppointmentRequest>
  </soapenv:Body>
</soapenv:Envelope>
Solution: I have to add "e" tag:

Code: Select all

<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header>
    <context xmlns="urn:zimbra" xmlns:axis2ns1="urn:zimbra">
      <axis2ns1:authToken>mytoken</axis2ns1:authToken>
    </context>
  </soapenv:Header>
  <soapenv:Body>
    <axis2ns5:CreateAppointmentRequest xmlns:axis2ns5="urn:zimbraMail" xmlns="urn:zimbraMail" xmlns:axis2ns6="urn:zimbraMail" forcesend="1">
      <axis2ns6:m l="280" su="Oggetto: Nuovo Appuntamento da JAVA">
        <mp ct="multipart/alternative">
          <mp content="CiaoBody" ct="text/plain"/>
        </mp>
        <inv>
          <comp xmlns:axis2ns16="urn:zimbraMail" xmlns:axis2ns15="urn:zimbraMail" xmlns:axis2ns14="urn:zimbraMail" xmlns:axis2ns13="urn:zimbraMail" xmlns:axis2ns17="urn:zimbraMail" xmlns:axis2ns12="urn:zimbraMail" xmlns:axis2ns11="urn:zimbraMail" allDay="0" draft="0" fb="B" loc="Filiale di Monza" name="MIO_OGGETTO" noBlob="1" status="CONF">
            <axis2ns11:at a="testblabla@ccc.it" ptst="NE" role="REQ" rsvp="1"/>
            <axis2ns12:at a="mickey.mouse@blablaspa.com" ptst="NE" role="REQ" rsvp="1"/>
            <axis2ns13:or a="testblabla@ccc.it" d="Amministrazione Appuntamenti"/>
            <axis2ns14:s d="20160923T093023"/>
            <axis2ns15:e d="20160923T103023"/>
            <axis2ns16:descHtml>DESC_HTML</axis2ns16:descHtml>
            <axis2ns17:desc>DESC_NORMALE</axis2ns17:desc>
          </comp>
        </inv>
        <e a="mickey.mouse@blablaspa.com" p="mickey mouse" t="t"/>
      </axis2ns6:m>
    </axis2ns5:CreateAppointmentRequest>
  </soapenv:Body>
</soapenv:Envelope>
Post Reply