// Retrieve a task with HTML content created from Outlook
EWSTaskDTO ewsHtmlTask = connector.getFullTask(idVersion[0]);
ewsHtmlTask.setSubject("Edited subject");
// Fail
connector.updateTask(ewsHtmlTask);
EWSTaskDTO ewsTask = new EWSTaskDTO();
ewsTask.setSubject("Test");
ewsTask.setBody("<html>my body</html>");
// Fail
String[] idVersion = connector.createTask(ewsTask);
jec.ExchangeGeneralException: <?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorSchemaValidation</faultcode><faultstring xml:lang="en-US">The request failed schema validation: The element 'http://schemas.microsoft.com/exchange/services/2006/types:Body' cannot contain child element 'http://schemas.microsoft.com/exchange/services/2006/messages:html' because the parent element's content model is text only.</faultstring><detail><e:ResponseCode xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">ErrorSchemaValidation</e:ResponseCode><e:Message xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">The request failed schema validation.</e:Message><t:MessageXml xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><t:LineNumber>1</t:LineNumber><t:LinePosition>614</t:LinePosition><t:Violation>The element 'http://schemas.microsoft.com/exchange/services/2006/types:Body' cannot contain child element 'http://schemas.microsoft.com/exchange/services/2006/messages:html' because the parent element's content model is text only.</t:Violation></t:MessageXml></detail></s:Fault></s:Body></s:Envelope>
--
You received this message because you are subscribed to the Google Groups "jec users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jec-users2+unsubscribe@googlegroups.com.
To post to this group, send email to jec-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/jec-users2.
For more options, visit https://groups.google.com/d/optout.