The '`' character and RestSharp request body

446 views
Skip to first unread message

Alex Blokha

unread,
Aug 21, 2013, 3:26:42 AM8/21/13
to rest...@googlegroups.com
Hello,

Does anybody have the answere to this question?

I am trying to Post request with my entities using RestSharp.

But I receive an error:

"System.Xml.XmlException : The '`' character, hexadecimal value 0x60, 
cannot be included in a name."

I am placing the list in the body of the query.

var strList = new List<string>();
      strList.Add("one");
      strList.Add("two");

restRequest.AddBody(strList);

It seems it doesn't like how the generic is serialized. Is there any advices how the list should be passed to request?


http://stackoverflow.com/questions/18332471/the-character-and-restsharp-request-body
Reply all
Reply to author
Forward
0 new messages