<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fiddler Archives : Binary Bits</title>
	<atom:link href="https://blog.binarybits.net/tag/fiddler/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.binarybits.net/tag/fiddler/</link>
	<description>Bits &#38; Pieces - A blog by Kannan Balasubramanian</description>
	<lastBuildDate>Sat, 07 Sep 2013 04:58:47 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>WCF &#8211; The incoming message has an unexpected message format &#8216;Raw&#8217;</title>
		<link>https://blog.binarybits.net/wcf-the-incoming-message-has-an-unexpected-message-format-raw/</link>
					<comments>https://blog.binarybits.net/wcf-the-incoming-message-has-an-unexpected-message-format-raw/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Sat, 07 Sep 2013 04:58:47 +0000</pubDate>
				<category><![CDATA[WCF]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Fiddler]]></category>
		<category><![CDATA[REST]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=550</guid>

					<description><![CDATA[<p>I was testing out my own WCF REST Service using Fiddler and was getting error response &#8220;The incoming message has an unexpected message format &#8216;Raw'&#8221;. After spending time diagnosing the message the clue was, the WCF was getting a request with no content type. My contract was specifically expecting the request format to be XML [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/wcf-the-incoming-message-has-an-unexpected-message-format-raw/">WCF &#8211; The incoming message has an unexpected message format &#8216;Raw&#8217;</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I was testing out my own WCF REST Service using Fiddler and was getting error response &#8220;The incoming message has an unexpected message format &#8216;Raw'&#8221;.</p>
<p>After spending time diagnosing the message the clue was, the WCF was getting a request with no content type.</p>
<p>My contract was specifically expecting the request format to be XML using the following attribute</p>
<pre>RequestFormat = WebMessageFormat.Xml</pre>
<p>Hence added the content type as &#8220;application/xml&#8221; and things went fine.</p>
<p>The following is an example of Fiddler&#8217;s request for a REST POST with composite data type</p>
<p><strong>Type:</strong> POST<br />
<strong>URL:</strong> http://localhost:1510/GalleryService.svc/RestService/GetDataUsingDataContract/<br />
<strong>Protocol:</strong> HTTP/1.1</p>
<p><strong>Request Header:</strong></p>
<blockquote><p>User-Agent: Fiddler<br />
Host: localhost:1510<br />
Content-Length: 198<br />
Content-Type: application/xml</p></blockquote>
<p><strong>Request Body:</strong></p>
<pre class="wrap:true lang:xhtml decode:true">&lt;CompositeType xmlns="http://schemas.datacontract.org/2004/07/Net.BinaryBits.Apps.BBGallery.WebService"&gt;&lt;BoolValue&gt;true&lt;/BoolValue&gt;&lt;StringValue&gt;String content&lt;/StringValue&gt;&lt;/CompositeType&gt;</pre>
<p>The post <a href="https://blog.binarybits.net/wcf-the-incoming-message-has-an-unexpected-message-format-raw/">WCF &#8211; The incoming message has an unexpected message format &#8216;Raw&#8217;</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/wcf-the-incoming-message-has-an-unexpected-message-format-raw/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: blog.binarybits.net @ 2026-04-23 06:40:13 by W3 Total Cache
-->