<?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>Stuart&#039;s Soliloquy to the void &#187; .NET</title>
	<atom:link href="http://hstuart.dk/category/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://hstuart.dk</link>
	<description>A blog on development, baking and the universe.</description>
	<lastBuildDate>Sun, 10 Jul 2011 08:32:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=0</generator>
		<item>
		<title>A DIME for your Country &#8211; the continued story</title>
		<link>http://hstuart.dk/2004/06/11/a-dime-for-your-country-the-continued-story/</link>
		<comments>http://hstuart.dk/2004/06/11/a-dime-for-your-country-the-continued-story/#comments</comments>
		<pubDate>Fri, 11 Jun 2004 04:51:43 +0000</pubDate>
		<dc:creator>Henrik Stuart</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://localhost/index.php/2004/06/11/a-dime-for-your-country-the-continued-story/</guid>
		<description><![CDATA[I have previously discussed Microsoft&#8217;s DIME implementation in their Web Service Enhancements 1.0 library for .NET. Namely the part where they manage to break any and all support for non-ASCII SOAP transfers. It seems as if they&#8217;ve rectified this grivious mistake in version 2.0 of WSE, so now we can have international messages, yay! Of [...]]]></description>
			<content:encoded><![CDATA[<p>I have <a href="/2004/04/05/a-dime-for-your-country/">previously</a> discussed Microsoft&#8217;s DIME implementation in their Web Service Enhancements 1.0 library for .NET. Namely the part where they manage to break any and all support for non-ASCII SOAP transfers. It seems as if they&#8217;ve rectified this grivious mistake in version 2.0 of WSE, so now we can have international messages, yay!</p>
<p>Of course we have to rebind our solutions, re-test and all, but hey, what don&#8217;t we do to get them internation characters delivered to our doorstep?</p>
]]></content:encoded>
			<wfw:commentRss>http://hstuart.dk/2004/06/11/a-dime-for-your-country-the-continued-story/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A DIME for your Country</title>
		<link>http://hstuart.dk/2004/04/05/a-dime-for-your-country/</link>
		<comments>http://hstuart.dk/2004/04/05/a-dime-for-your-country/#comments</comments>
		<pubDate>Mon, 05 Apr 2004 04:31:21 +0000</pubDate>
		<dc:creator>Henrik Stuart</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://localhost/index.php/2004/04/05/a-dime-for-your-country/</guid>
		<description><![CDATA[Lately at work I have been on a project where we needed to implement a web service client. A part of this client is accepting a series of files passed as DIME attachments. Since .NET doesn&#8217;t implement this on its own we had to dig forth the Microsoft WSE 1.0 library, which features a series [...]]]></description>
			<content:encoded><![CDATA[<p>Lately at work I have been on a project where we needed to implement a web service client. A part of this client is accepting a series of files passed as DIME attachments. Since .NET doesn&#8217;t implement this on its own we had to dig forth the <a href="http://msdn.microsoft.com/webservices/building/wse/default.aspx?pull=/library/en-us/dnwse/html/progwse.asp">Microsoft WSE 1.0 library</a>, which features a series of extensions to the normal web service programming support.</p>
<p>To understand the full conundrum let us back up a bit. Part of the receival of the documents is an enum with the name of the document type. Since we&#8217;re in Denmark and the web service is by another Danish company we do, of course, have some localised names with æ, ø and å in them — e.g. Lånebevilling. Now this is all great as long as we just remember to use <q>utf-8</q> or <q>iso-8859-1</q> as the charset type&#8230; or is it?</p>
<p>Using the DIME classes is fairly straightforward and not overly difficult so we were taken slightly aback when our web service client notified us that it had caught a Deserialization exception from the SOAP message — namely <q>System.InvalidOperationException: &#8216;??&#8217; is not a valid value for ResponseType.</q>. With this extremely obvious error message I went spelunking in the badlands of the WSE1.0 implementation. After fruitless hours of looking through the disassembled code of the Microsoft.Web.Services.Dime namespace I sought help with the SOAP 3.0 toolkit and inserted a trace listener to see what actually went across the wire.</p>
<p>After about a days&#8217; work pondering why it just didn&#8217;t work I came across an unsuspecting <code>Encoding.ASCII.GetString</code> call in the backlands of the Soap Deserializer. As the client very kindly tells me then <q>å</q> isn&#8217;t an ASCII character. Disappointed we were faced with two options: write our own DIME implementation or get our external partner to stop using locale specific characters. Neither a truly pleasing solution.</p>
<p>So to round all of this off then in this case the implementation doesn&#8217;t give a DIME about your country or its letters. Just keep to ASCII and everyone will be happy. Pity.</p>
]]></content:encoded>
			<wfw:commentRss>http://hstuart.dk/2004/04/05/a-dime-for-your-country/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

