Bug 29213 - XML Namespace URI required when making WCF request with JSON
Summary: XML Namespace URI required when making WCF request with JSON
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: 3.12.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-04-17 16:43 UTC by edwinguy
Modified: 2017-09-06 16:55 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

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):
http://pastebin.com/tuBANR3v

Here's the stack trace:
http://pastebin.com/GSkZdhq4

Note You need to log in before you can comment on or make changes to this bug.