Gemini WebService CustomeField saving xml error
Hi. I want to save a custom field through the following line and I get the following error. The verion is 3.7.3. I am trying to save just a number in the custom field like 123-5 and another empty fields, not any special characters like &, <, >, " ' that the XML parser doesn't handle without encoding.
ServiceManager.CustomFieldsService.SaveCustomFieldData(CustomFieldDataEN);
Error generated: System.Xml.XmlException: '>' is an unexpected token. The expected token is '"' or '''. Line 1, position 55.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.Throw(Exception e)
at System.Xml.DtdParser.Throw(Int32 curPos, String res, String[] args)
at System.Xml.DtdParser.ThrowUnexpectedToken(Int32 pos, String expectedToken1, String expectedToken2)
at System.Xml.DtdParser.ParseExternalId(Token idTokenType, Token declType, String& publicId, String& systemId)
at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset)
at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
at System.Xml.XmlTextReaderImpl.DtdParserProxy.Parse(Boolean saveInternalSubset)
at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(Stream inStream)
at CounterSoft.Gemini.Commons.Rest.Serializer.ConvertToObject[T](Stream stream)
at CounterSoft.Gemini.WebServices.BaseService.GetObjectFromResponse[T](Stream stream)
at CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response)
at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType)
at CounterSoft.Gemini.WebServices.BaseService.GetResponse[T](String url, Object o, RequestType r)
at CounterSoft.Gemini.WebServices.CustomFieldsService.SaveCustomFieldData(CustomFieldDataEN customFieldData)
at Umen.JtGemini.Create.Issue.GeminiProject.SetCustomFieldValue(String bordereau, Int32 issueID, String Bordereau) in C:\Projets\Other\Umen.JtGemini\trunk\Umen.JtGemini.Create.Issue\GeminiProject.cs:line 228
I would like to know what is wrong?
Thanks.
rop
· 1 |
|
Wednesday, March 23, 2011, 2:03:59 PM |