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 10-19-2009, 09:43 AM
Starter Member
 
Posts: 1
Default How modify a selected Appointment with MODIFY_APPOINTMENT_REQUEST

I have the following code :

soapHttpTransport.setAuthToken(authToken);

Element requestModifyAppt = Element.XMLElement.mFactory.createElement(MailCons tants.MODIFY_APPOINTMENT_REQUEST);
requestModifyAppt.addAttribute(MailConstants.A_ID, "398-397");

Element msgElement = Element.XMLElement.mFactory.createElement(MailCons tants.E_MSG);
msgElement.addAttribute(MailConstants.A_REPLY_TYPE , "w");

requestModifyAppt.addAttribute(MailConstants.A_TOK EN, authToken);

requestModifyAppt.addAttribute(MailConstants.A_CAL _START_TIME, "20091019T000000");

requestModifyAppt.addAttribute(MailConstants.A_CAL _START_TIME, "20091019T040000");

requestModifyAppt.addAttribute(MailConstants.A_CAL _LOCATION, "location ddd");

requestModifyAppt.addAttribute(MailConstants.E_NAM E, "name test");

requestModifyAppt.addAttribute(MailConstants.A_FOL DER, ZFolder.ID_CALENDAR);


requestModifyAppt.addElement(msgElement);

Element responseModifyAppt = null;
try
{
responseModifyAppt = soapHttpTransport.invoke(requestModifyAppt);
}
catch (SoapFaultException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}


But I have the folloing exception :

com.zimbra.common.soap.SoapFaultException: system failure: java.lang.NullPointerException
ExceptionId:btpool0-13:1255963940487:f27fc284109a7913
Code:service.FAILURE
at com.zimbra.common.soap.Soap12Protocol.soapFault(So ap12Protocol.java:88)
at com.zimbra.common.soap.SoapTransport.extractBodyEl ement(SoapTransport.java:263)
at com.zimbra.common.soap.SoapTransport.parseSoapResp onse(SoapTransport.java:224)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:262)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:217)
at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:315)
at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:279)

Can you help me
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

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.