[Mono-dev] POSTing objects in JSON format...
atsushieno at veritas-vos-liberabit.com
Mon Jan 25 21:06:58 EST 2010
Our WebHttpBinding does support json-based requests and responses.
There is a lot of possibilities why you don't get json response instead
of xml, and I can't give you an answer with almost no information.
If you file a bug with the steps to configure and run the service, I'll
have a look.
On 2010/01/26 9:47, ed.segura wrote:
> I'm wondering why this format doesn't work for mono, when it does for
> I'm trying to send a simple post request to the service, which contains the
> This works fine in VS2008, but I keep getting an exception when I try to
> POST that data using mono:
> Exit HttpContextAcquired:
> Exit AspNetReplyChannel.WaitForRequest
> AspNetReplyChannel caught an error: System.Xml.XmlException: Text node
> cannot appear in this state. Line 1, position 1.
> at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00199] in
> at Mono.Xml2.XmlTextReader.ReadContent () [0x0015c] in
> at Mono.Xml2.XmlTextReader.Read () [0x00141] in
> at System.Xml.XmlTextReader.Read () [0x0006b] in
> Am I missing something? I tried with several variations of the syntax, but
> nothing seems to work. I also looked in the forums for json serialization
> issues on 'post', but no luck.
> Any help will be highly appreciated...
More information about the Mono-devel-list