Updating Custom Field DateTime in Answer - There was an error generating XML document
Content
I have to update a Custom Field with date on Answer using SOAP. Setting the date seems to be an issiue here.
The error that I have is
- $exception {"There was an error in serializing body of message UpdateRequest: 'There was an error generating the XML document.'. Please see InnerException for more details."} System.Exception {System.ServiceModel.CommunicationException}
and innerException is
- base {"Invalid or missing value of the choice identifier 'ItemsElementName' of type 'AnswerVersionRibbonDeploy.ver_AddIn.RNT_SOAP.ItemsChoiceType[]'."} System.Exception {System.InvalidOperationException}
The code is below. I have also some integer Custom Fields, which are set before the DateTime and they are working fine. Is there any specific way I have to set the DateTime Field?