<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/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>WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx</link><description>I&amp;#39;m a newbie in WFC and, so far, only have done client code to call POX web services. I&amp;#39;ve been using a textMessageEncoding binding extension with a message version of None and a write encoding of utf-8 and all has been running fine. Well, until</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1736299</link><pubDate>Fri, 30 Oct 2009 09:25:45 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1736299</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;I agree that WCF should support other encodings, but if you need something more than just calling a web service (security, other bindings (TCP, Pipes, etc.), logging, tracing, etc.) nothing beats WCF.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1736299" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1735979</link><pubDate>Wed, 28 Oct 2009 23:44:49 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1735979</guid><dc:creator>Jim Rolph</dc:creator><description>&lt;p&gt;I got this error too when using .NET 3.5/VS 2008. &amp;nbsp;I added a &amp;quot;Service Reference&amp;quot; and imported the WSDL for a site driven by PHP. &amp;nbsp;It built fine, but got the ISO-8859-1 encoding error.&lt;/p&gt;
&lt;p&gt;I tried again after changing the project properties to uses .NET 2.0. &amp;nbsp;This time, I was not offered the option of adding a &amp;quot;Service Reference&amp;quot;, but I could add a &amp;quot;Web Reference&amp;quot;. &amp;nbsp;When I did that, everything worked fine.&lt;/p&gt;
&lt;p&gt;Finally, I tried using .NET 3.5 again. &amp;nbsp;I used &amp;quot;Add Service Reference&amp;quot; again, but this time I hit the &amp;quot;Advanced...&amp;quot; button. &amp;nbsp;The next dialog box had a compatibility option where a button allowed you to add a &amp;quot;Web Reference&amp;quot; based on .NET 2.0 Web Services. &amp;nbsp;This worked the same as when using .NET 2.0, but the rest of your app can use .NET 3.5.&lt;/p&gt;
&lt;p&gt;There must be advantages in using the &amp;quot;Service Reference&amp;quot;, but until WCF supports ISO-8859-1, using a &amp;quot;Web Reference&amp;quot; beats having to override IsContentSupported.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1735979" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1719070</link><pubDate>Sat, 29 Aug 2009 11:27:52 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1719070</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;Hi Eric,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not that good on WCF, but I think it could be done.&lt;/p&gt;
&lt;p&gt;IsContentTypeSupported is a member of the MessageEncoder class. So you need one to override it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1719070" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1718989</link><pubDate>Fri, 28 Aug 2009 22:04:49 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1718989</guid><dc:creator>Eric Schlosser</dc:creator><description>&lt;p&gt;Paul,&lt;/p&gt;
&lt;p&gt;In the WSD Scan Spec, to retrieve a scan you send a standard utf-8 text message and recieve a mime type with enbedded MTOM in it. Since a basic wcf message can only send and recieve one type, could you use this to trap the content type mismatch? if so, without a custom message encoder can you use a IsContentTypeSupported overide and trap the mismatch?&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1718989" width="1" height="1"&gt;</description></item><item><title>SOAP and DotNet 3.0 / 3.5 &amp;laquo;  Shaw Innes</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1686115</link><pubDate>Thu, 09 Apr 2009 03:22:43 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1686115</guid><dc:creator>SOAP and DotNet 3.0 / 3.5 «  Shaw Innes</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;SOAP and DotNet 3.0 / 3.5 &amp;laquo; &amp;nbsp;Shaw Innes&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1686115" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1643723</link><pubDate>Thu, 07 Aug 2008 14:45:34 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1643723</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;You are better of that way, but, at the time, I wasn&amp;#39;t allowed that luxury.&lt;/p&gt;
&lt;p&gt;Based on the sample, I wrote my onw message encoder and registered it and it without any change in both caller and called applications.&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;system.serviceModel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;bindings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;customBinding&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;binding name=&amp;quot;MyCustomBinding&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;customTextMessageEncoding messageVersion=&amp;quot;None&amp;quot; writeEncoding=&amp;quot;ISO-8859-1&amp;quot; mediaType=&amp;quot;text/xml&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;httpTransport manualAddressing=&amp;quot;false&amp;quot; keepAliveEnabled=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/binding&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/customBinding&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/bindings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;client&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;endpoint name=&amp;quot;MyServiceEndpoint&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address=http://myserver/MyPoxEndpoint&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;contract=&amp;quot;IMyService&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;binding=&amp;quot;customBinding&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bindingConfiguration=&amp;quot;MyCustomBinding&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/client&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/system.serviceModel&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1643723" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1643710</link><pubDate>Thu, 07 Aug 2008 13:40:13 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1643710</guid><dc:creator>Erik</dc:creator><description>&lt;p&gt;Thought WCF was there to make our lifes easier ;-)&lt;/p&gt;
&lt;p&gt;For the moment fixed the problem at the other side: changed the PHP webservice so it returns UTF-8 and now it works.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to look at writing my own custom message encoder later.&lt;/p&gt;
&lt;p&gt;Thanx for your reponse, made things clearer for me!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1643710" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1643617</link><pubDate>Wed, 06 Aug 2008 23:39:13 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1643617</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;You have to do all that in order to WCF use your message encoder.&lt;/p&gt;
&lt;p&gt;The message encoder will be called in by WCF while WCF runs the request/response through its pipeline.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1643617" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1643548</link><pubDate>Wed, 06 Aug 2008 11:32:19 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1643548</guid><dc:creator>Erik</dc:creator><description>&lt;p&gt;It&amp;#39;s probably since I&amp;#39;m not yet familiar enough with .Net/WCF ;-)&lt;/p&gt;
&lt;p&gt;But if I look at the artice I would have to write code for a custom MessageEncoder (where the IsContentTyepSupported is overridden), a custom &lt;/p&gt;
&lt;p&gt;MessageEncoderFactory and a custom TextMessageEncodingBindingElement?&lt;/p&gt;
&lt;p&gt;And I still cannot see where the custom MessageEncoder is actually hooked in when the call to the webservice is made.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1643548" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1643543</link><pubDate>Wed, 06 Aug 2008 11:05:56 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1643543</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;Can you elaborate a bit more on where you need help here?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1643543" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1643539</link><pubDate>Wed, 06 Aug 2008 09:36:13 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1643539</guid><dc:creator>Erik</dc:creator><description>&lt;p&gt;Read the article, but still don&amp;#39;t understand how easy I can implement this message encoder while calling such a webservice. Anyone any help?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1643539" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1633658</link><pubDate>Tue, 10 Jun 2008 16:26:28 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1633658</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;See this article:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/library/ms751486.aspx"&gt;msdn.microsoft.com/.../ms751486.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1633658" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1633412</link><pubDate>Mon, 09 Jun 2008 22:49:46 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1633412</guid><dc:creator>Adam</dc:creator><description>&lt;p&gt;So, this all makes sense to me, but for one thing: &amp;nbsp;How do you configure your app to use your custom encoder containing the override?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1633412" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1504028</link><pubDate>Sat, 09 Feb 2008 01:05:42 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1504028</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;It can be on either side. Just put it where you need it to be.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1504028" width="1" height="1"&gt;</description></item><item><title>re: WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1503008</link><pubDate>Fri, 08 Feb 2008 07:23:42 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1503008</guid><dc:creator>swapneel</dc:creator><description>&lt;p&gt;where do we override this method, in the application. is it in the client side or in the service side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1503008" width="1" height="1"&gt;</description></item><item><title>XML SOAP Service: Encoding-Probleme - .NET Windows Forms @ tutorials.de: Forum, Tutorial, Anleitung, Schulung &amp;amp; Hilfe</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#1319870</link><pubDate>Fri, 16 Nov 2007 14:01:47 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1319870</guid><dc:creator>XML SOAP Service: Encoding-Probleme - .NET Windows Forms @ tutorials.de: Forum, Tutorial, Anleitung, Schulung &amp; Hilfe</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;XML SOAP Service: Encoding-Probleme - .NET Windows Forms @ tutorials.de: Forum, Tutorial, Anleitung, Schulung &amp;amp; Hilfe&lt;/p&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1319870" width="1" height="1"&gt;</description></item><item><title>Optimizing reading for the CustomTextMessageEncoder</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#893817</link><pubDate>Mon, 07 May 2007 20:45:32 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:893817</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;Continuing the improvement of the CustomTextMessageEncoder (see this and this ), this time I&amp;amp;#39;ll use&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=893817" width="1" height="1"&gt;</description></item><item><title>WCF: Text Message Encoding and ISO-8859-1 Encoding</title><link>http://msmvps.com/blogs/paulomorgado/archive/2007/04/25/wcf-text-message-encoding-and-iso-8859-1-encoding.aspx#878320</link><pubDate>Wed, 25 Apr 2007 21:23:05 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:878320</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You&amp;#39;ve been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=878320" width="1" height="1"&gt;</description></item></channel></rss>