Bug 29213

Summary: XML Namespace URI required when making WCF request with JSON
Product: [Mono] Class Libraries Reporter: edwinguy
Component: WCF assembliesAssignee: Bugzilla <bugzilla>
Status: NEW ---    
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: 3.12.0   
Target Milestone: Untriaged   
Hardware: Macintosh   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description edwinguy 2015-04-17 16:43:47 UTC
The main problem I'm running up against is that my WCF client isn't able to serialize its request to JSON properly. From the stack trace (see pastebin link below), it looks like the message is being converted to XML first, then to JSON.

This seems a bit odd since WebMessageEncoder.WriteMessage(Message, Stream) should be able to handle the JSON encoding directly if GetContentFormat(Message) returned the right WebContentFormat.

Let me know if it's worth building a real-working project for this.

Here's the relevant snippets of code (may have syntax errors):

Here's the stack trace: