﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WebGet and WebInvoke</title><link />http://developers.de/blogs/damir_dobric/archive/2007/09/09/webget-and-webinvoke.aspx<description>WCF 3.5 introduces two new operation behaviors : WebGet and WebPut . I wouldn&amp;#39;t declare this as revolutionary feature, but definitely as an important one. To explain new behaviors Imagine you have a contract like this one: [ ServiceContract ] public</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>re: WebGet and WebInvoke</title><link />http://developers.de/blogs/damir_dobric/archive/2007/09/09/webget-and-webinvoke.aspx#12672<pubdate>Tue, 08 Jun 2010 21:21:48 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:12672</guid><dc:creator>The_Ghost</dc:creator><description>&lt;p&gt;You have to add that line to the request:&lt;/p&gt;
&lt;p&gt;Content-Type: application/xml; charset=utf-8&lt;/p&gt;
&lt;p&gt;I had the same problem.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=12672" width="1" height="1"&gt;</description></item><item><title>re: WebGet and WebInvoke</title><link />http://developers.de/blogs/damir_dobric/archive/2007/09/09/webget-and-webinvoke.aspx#1645<pubdate>Sat, 03 Nov 2007 05:59:01 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1645</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;I'm trying to make the most simple service that consumes and output xml. &amp;nbsp;I followed &lt;a rel="nofollow" target="_new" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2282952&amp;amp;SiteID=1"&gt;forums.microsoft.com/.../ShowPost.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and am able to output xml properly, but after almost a day, I am not any closer to consuming xml.&lt;/p&gt;
&lt;p&gt;Here is what my contract looks like.&lt;/p&gt;
&lt;p&gt;[ServiceContract]&lt;/p&gt;
&lt;p&gt;public interface ITestService&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;[OperationContract, WebInvoke(&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BodyStyle = WebMessageBodyStyle.Bare,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RequestFormat = WebMessageFormat.Xml,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ResponseFormat = WebMessageFormat.Xml)]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;XmlElement GetAsXml(Stream input);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I am using fiddler to simulate a client. &amp;nbsp;Here is what I am sending using fiddler:&lt;/p&gt;
&lt;p&gt;POST &lt;a rel="nofollow" target="_new" href="http://127.0.0.1:60000/TestService.svc/GetAsXml"&gt;127.0.0.1/.../GetAsXml&lt;/a&gt; HTTP/1.1&lt;/p&gt;
&lt;p&gt;User-Agent: Fiddler&lt;/p&gt;
&lt;p&gt;Host: 127.0.0.1:60000&lt;/p&gt;
&lt;p&gt;Content-Length: 204&lt;/p&gt;
&lt;p&gt;&amp;lt;TextBlock x:Name=&amp;quot;text&amp;quot; IsHitTestVisible=&amp;quot;false&amp;quot; Text=&amp;quot;Hello&amp;quot; Foreground=&amp;quot;black&amp;quot; xmlns=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;"&gt;schemas.microsoft.com/.../presentation&amp;quot;&lt;/a&gt; xmlns:x=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;/&amp;gt;"&gt;schemas.microsoft.com/.../&amp;gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The response I get it is HTTP/1.1 415 Unsupported Media Type&lt;/p&gt;
&lt;p&gt;If I add Content-Type: application/xml; charset=utf-8 to the request headers, I get the following response:&lt;/p&gt;
&lt;p&gt;HTTP/1.1 400 Bad Request&lt;/p&gt;
&lt;p&gt;Any ideas. &amp;nbsp;All I want to do is parse the xml that is in the post request on the server&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1645" width="1" height="1"&gt;</description></item><item><title>Mobility Day Zagreb 2007</title><link />http://developers.de/blogs/damir_dobric/archive/2007/09/09/webget-and-webinvoke.aspx#1559<pubdate>Mon, 10 Sep 2007 07:02:40 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1559</guid><dc:creator>Damir Dobric Posts</dc:creator><description>&lt;p&gt;At Sept. 11. 2007 I will talk at Mobility Day in Zagreb about new communication possibilities around&lt;/p&gt;
&lt;img src="http://developers.de/aggbug.aspx?PostID=1559" width="1" height="1"&gt;</description></item><item><title>Syndication API for .NET Compact Framework</title><link />http://developers.de/blogs/damir_dobric/archive/2007/09/09/webget-and-webinvoke.aspx#1556<pubdate>Sun, 09 Sep 2007 21:17:29 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1556</guid><dc:creator>Damir Dobric Posts</dc:creator><description>&lt;p&gt;Few weeks ago Microsoft announced the APLHA version of “ BizTalk Services ”. Small part of the package&lt;/p&gt;
&lt;img src="http://developers.de/aggbug.aspx?PostID=1556" width="1" height="1"&gt;</description></item></channel></rss>