<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Mikael Deurell : WCF</title><link>http://blogs.msdn.com/deurell/archive/tags/WCF/default.aspx</link><description>Tags: WCF</description><dc:language>sv-SE</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Mardrömmar och WCF bindings utan någonsomhelst säkerhet...</title><link>http://blogs.msdn.com/deurell/archive/2007/04/23/wcf-usingsecurebinding-isauthenticated.aspx</link><pubDate>Mon, 23 Apr 2007 11:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2243545</guid><dc:creator>mikaeld</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/deurell/comments/2243545.aspx</comments><wfw:commentRss>http://blogs.msdn.com/deurell/commentrss.aspx?PostID=2243545</wfw:commentRss><description>&lt;P&gt;Detta är mest en egen minnesanteckning... Lek med tanken att ni vaknar upp mitt under exekveringen av en WCF service och ni måste ta reda på om&amp;nbsp;ni har en binding som implementerar någon som helst säkerhet. Hur gör man?&lt;/P&gt;
&lt;DIV class=wlWriterSmartContent id=57F11A72-B0E5-49c7-9094-E3A15BD5B5E7:5a58f99a-9897-4d81-aa61-d1d7a1887efb contentEditable=false style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; FLOAT: none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;&lt;PRE style="OVERFLOW: auto; BACKGROUND-COLOR: white"&gt;&lt;DIV&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;SPAN style="COLOR: #000000"&gt;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;private&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;static&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;bool&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; usesSecureBinding()
        {
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; (ServiceSecurityContext.Current &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;!=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;null&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
        }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/PRE&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/DIV&gt;
&lt;P&gt;Och om vi nu lyckas få reda på att vi har någon form av säkerhet på vår resa genom vår sköna binding. Hur vet vi om användaren är authenticerad? Jo;&lt;/P&gt;
&lt;DIV class=wlWriterSmartContent id=57F11A72-B0E5-49c7-9094-E3A15BD5B5E7:8573a2a8-d90c-426d-96ba-140668ea9a35 contentEditable=false style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; FLOAT: none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;&lt;PRE style="OVERFLOW: auto; BACKGROUND-COLOR: white"&gt;&lt;DIV&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;SPAN style="COLOR: #000000"&gt;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;private&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;static&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;bool&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; isAuthenticated()
        {
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; (ServiceSecurityContext.Current &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;==&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;null&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;)
            {
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;throw&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Exception(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;No Security Context available&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
            }
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;!&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(ServiceSecurityContext.Current.IsAnonymous);
        }
&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/PRE&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/DIV&gt;
&lt;P&gt;Måste sluta drömma sånahär mardrömmar...&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2243545" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/deurell/archive/tags/WCF/default.aspx">WCF</category></item><item><title>WCF Performance Comparison</title><link>http://blogs.msdn.com/deurell/archive/2007/03/31/wcf-performance-comparison.aspx</link><pubDate>Sat, 31 Mar 2007 14:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1999285</guid><dc:creator>mikaeld</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/deurell/comments/1999285.aspx</comments><wfw:commentRss>http://blogs.msdn.com/deurell/commentrss.aspx?PostID=1999285</wfw:commentRss><description>&lt;P&gt;Jag har haft förmånen att få köra en bunt med WCF dragningar under den sista tiden. En fråga som nästan alltid kommer upp är performance. I fallet ASMX/WCF är marknadsföringssvaret att dra till med någon 37,4% gissning baserat på ett helt rent schema och hur mycket snabbare en DataContract serializer är&amp;nbsp;än en XMLSerializer. Jag känner mig lite tafflig när jag svarar så... Verkligheten brukar vara lite mer komplex... Hur förhåller sig ASMX till WCF till Enterprise Services, IIS&amp;nbsp;hostad&amp;nbsp;under Basic Profile, med transport security, WS-Sec&amp;nbsp;och såvidare... Nu har vi publicerat WCF Performance Comparison som svarar på frågan mycket bättre än jag någonsin gjort... Kolla in den &lt;A href="http://msdn2.microsoft.com/en-us/library/bb310550.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/bb310550.aspx"&gt;här!&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;För er som inte orkar läsa den kommer här sammanfattningen:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;When migrating distributed applications written with ASP.NET Web Services, WSE, .NET Enterprise Services and .NET Remoting to WCF, the performance is at least comparable to the other existing Microsoft distributed communication technologies. In most cases, the performance is significantly better for WCF over the other existing technologies. Another important characteristic of WCF is that the throughput performance is inherently scalable from a uni processor to quad processor.&lt;/EM&gt; 
&lt;P&gt;&lt;EM&gt;To summarize the results, WCF is 25%—50% faster than ASP.NET Web Services, and approximately 25% faster than .NET Remoting. Comparison with .NET Enterprise Service is load dependant, as in one case WCF is nearly 100% faster but in another scenario it is nearly 25% slower. For WSE 2.0/3.0 implementations, migrating them to WCF will obviously provide the most significant performance gains of almost 4x.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Fridens liljor!&lt;BR&gt;/Micke&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1999285" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/deurell/archive/tags/WCF/default.aspx">WCF</category></item><item><title>Stuff från dagens DFO och WCF workshop</title><link>http://blogs.msdn.com/deurell/archive/2007/03/29/stuff-fr-aring-n-dagens-dfo-och-wcf-workshop.aspx</link><pubDate>Thu, 29 Mar 2007 14:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1987572</guid><dc:creator>mikaeld</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/deurell/comments/1987572.aspx</comments><wfw:commentRss>http://blogs.msdn.com/deurell/commentrss.aspx?PostID=1987572</wfw:commentRss><description>&lt;P&gt;Till mina åhörare till förmiddagens sessioner med DFO och WCF har jag lite bonusstuff som jag tänkte kunde vara intressant. DFO presentationen finns &lt;A href="http://www.mickesvarld.net/designforoperations.ppt" mce_href="http://www.mickesvarld.net/designforoperations.ppt"&gt;här&lt;/A&gt;&amp;nbsp;och WCF dragningen finns &lt;A href="http://www.mickesvarld.net/wcf.ppt" mce_href="http://www.mickesvarld.net/wcf.ppt"&gt;här&lt;/A&gt;. WCF demot där vi exposar en service via multipla bindings (net.tcp och http) finns &lt;A href="http://www.mickesvarld.net/multipleendpoints.zip" mce_href="http://www.mickesvarld.net/multipleendpoints.zip"&gt;här.&lt;/A&gt; Denna innhåller alla de moment vi gick igenom, WCF the code-way och the DSL-way. &lt;/P&gt;
&lt;P&gt;När det gäller demos kring DFO (Powershell etc.) finns dessa som blogg-entries om ni bläddrar ner några dagar i denna blog! Länken till Visual Studio Management Model Designer finns &lt;A href="http://blogs.msdn.com/deurell/archive/2007/03/22/visual-studio-management-model-designer-fr-aring-n-patterns-amp-practices.aspx" mce_href="http://blogs.msdn.com/deurell/archive/2007/03/22/visual-studio-management-model-designer-fr-aring-n-patterns-amp-practices.aspx"&gt;här.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Tack för en trevlig morgon!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1987572" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/deurell/archive/tags/WCF/default.aspx">WCF</category><category domain="http://blogs.msdn.com/deurell/archive/tags/DFO/default.aspx">DFO</category></item><item><title>Some "commonly used?" base-addresses fail in WCF :-)</title><link>http://blogs.msdn.com/deurell/archive/2007/03/19/some-quot-commonly-used-quot-base-addresses-fail-in-wcf.aspx</link><pubDate>Mon, 19 Mar 2007 16:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1913111</guid><dc:creator>mikaeld</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/deurell/comments/1913111.aspx</comments><wfw:commentRss>http://blogs.msdn.com/deurell/commentrss.aspx?PostID=1913111</wfw:commentRss><description>&lt;P&gt;Ok, ibland får jag en del luriga WCF-frågor. Efter detta&amp;nbsp;skall aldrig klaga mer! :-) Fick&amp;nbsp;en fråga av en vass kollega;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;The problem is that when using the following addresses as the base address of the config file of the service side, the hosting will fail: 
&lt;P&gt;&lt;A href="http://localhost:8080/聰10" mce_href="http://localhost:8080/聰10"&gt;http://localhost:8080/聰10&lt;/A&gt;月紜浩4桍蒾篯覞纂蚤水十11月箮11屵月曜日Γ歇熶10詏姾麖鱜乑土峵7泯畭劃裧日曜日12月10訐頏濱釤11軋諺劭悅弬牯嚀鐓娴掤譀水曜日鶧陮泯壜2月砟襞土曜日12月瓣赋盂8祲12尿植釤羂 
&lt;P&gt;http://localhost:8080/ׂא’׌ז׳’ױיונילדצמקײיולי֔Ñיום&amp;nbsp;ד״’׳’ֶ׵מרץשיולװיום&amp;nbsp;שנייום&amp;nbsp;א׳֘״ױװיום&amp;nbsp;ג׳״ספטװכ״נובמברדצמבר’ֽ֦֐×ä׳יום&amp;nbsp;חמישיײ’֞֒סַ׋׳יונ׳ספט״פ֢ױײ׵ײ״ײִ’־מאיװׁספטױ’יוניױָ׵יום&amp;nbsp;שישירֽ’יום&amp;nbsp;רביעי׈׎װוÖׁס’׳ׂ֭״׃׮כיום&amp;nbsp;אאòיום&amp;nbsp;ג׌־ױדצמבר׵ 
&lt;P&gt;&lt;A href="http://localhost:8080/السبتٖٙ*الخميسابريلمارسسٰيونيوڞالخميسالجمعة۶يونيوينايرâ۶پٰ۬ڬٰ؏ٰîڥينايرّالاربعاءالاحد۱۲¾ٕسبتمبرټٍّطِ۵۴ؿ۴ٰسبتمبرؠيوليو؝مارسٜٝاًُٰٰڝôيوليوâيونيوالسبتۋسڏٝفٰٵالاحدگٰٰسبتمبر٫ؠص:ٔ٬ٰالخميسۉٰ۳ٰٟڢيونيوéٰٔکۓّٮ۳à" mce_href="http://localhost:8080/السبتٖٙ*الخميسابريلمارسسٰيونيوڞالخميسالجمعة۶يونيوينايرâ۶پٰ۬ڬٰ؏ٰîڥينايرّالاربعاءالاحد۱۲¾ٕسبتمبرټٍّطِ۵۴ؿ۴ٰسبتمبرؠيوليو؝مارسٜٝاًُٰٰڝôيوليوâيونيوالسبتۋسڏٝفٰٵالاحدگٰٰسبتمبر٫ؠص:ٔ٬ٰالخميسۉٰ۳ٰٟڢيونيوéٰٔکۓّٮ۳à"&gt;http://localhost:8080/السبتٖٙ*الخميسابريلمارسسٰيونيوڞالخميسالجمعة۶يونيوينايرâ۶پٰ۬ڬٰ؏ٰîڥينايرّالاربعاءالاحد۱۲¾ٕسبتمبرټٍّطِ۵۴ؿ۴ٰسبتمبرؠيوليو؝مارسٜٝاًُٰٰڝôيوليوâيونيوالسبتۋسڏٝفٰٵالاحدگٰٰسبتمبر٫ؠص:ٔ٬ٰالخميسۉٰ۳ٰٟڢيونيوéٰٔکۓّٮ۳à&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;:-) 
&lt;P&gt;Sitter på ett X2000 till Göteborg för att köra några presentationer med Dag König. SKall bli kul! Första gången jag kör MSF:agile dragningen på engelska (Vilket troligvis kommer att få mig att vakna med "lätta" panikkänslor och svettiga handflator klockan 04:15 inatt...) &lt;/P&gt;
&lt;P&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;SPAN lang=EN style="FONT-SIZE: 11pt; COLOR: #7f7f7f; FONT-FAMILY: 'Arial','sans-serif'; mso-bidi-font-size: 12.0pt; mso-themecolor: text1; mso-themetint: 128; mso-ansi-language: EN"&gt;And I could feel our days where becoming night&lt;BR&gt;I could feel your heart beating across the grass&lt;BR&gt;We should have run, I would go with you anywhere&lt;BR&gt;I should have kissed you by the water&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;SPAN lang=EN style="FONT-SIZE: 11pt; COLOR: #7f7f7f; FONT-FAMILY: 'Arial','sans-serif'; mso-bidi-font-size: 12.0pt; mso-themecolor: text1; mso-themetint: 128; mso-ansi-language: EN"&gt;I still remember...&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1913111" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/deurell/archive/tags/Personal/default.aspx">Personal</category><category domain="http://blogs.msdn.com/deurell/archive/tags/WCF/default.aspx">WCF</category></item><item><title>Dinner now! At last...</title><link>http://blogs.msdn.com/deurell/archive/2007/02/03/dinner-now-at-last.aspx</link><pubDate>Sat, 03 Feb 2007 21:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1690704</guid><dc:creator>mikaeld</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/deurell/comments/1690704.aspx</comments><wfw:commentRss>http://blogs.msdn.com/deurell/commentrss.aspx?PostID=1690704</wfw:commentRss><description>&lt;P&gt;Jag skrev i en tidigare &lt;A href="http://www.mickesvarld.net/blog/PermaLink,guid,215468fb-b93e-410b-9e52-2af43b933bdf.aspx" mce_href="http://www.mickesvarld.net/blog/PermaLink,guid,215468fb-b93e-410b-9e52-2af43b933bdf.aspx"&gt;post&lt;/A&gt; om problem med att använda DLinq entiteter som Data Contracts i WCF. Det lobbades tydligen lite för detta på förra PDCn, något som idag inte är en så bra idé (även om vi fixar till så att vi trycker ut dessa objekt vackrare på linan med Orcas så är jag fortfarande lite skeptisk). Problemet var bara att demoapplikationen som jag blev förälskad i under en intern Microsoftkonferens i Seattle i somras inte fanns tillgänglig. Nu är den det!!! Äntligen!!! &lt;A href="http://www.dinnernow.net/" mce_href="http://www.dinnernow.net/"&gt;Här&lt;/A&gt;! Självklart var jag inte först ut med denna nyhet utan blev spöad av en rockande &lt;A href="https://blogs.msdn.com/robf/archive/2007/02/01/dinnernow-en-ny-demo-applikation-som-visar-en-m-ngd-olika-tekniker.aspx" mce_href="https://blogs.msdn.com/robf/archive/2007/02/01/dinnernow-en-ny-demo-applikation-som-visar-en-m-ngd-olika-tekniker.aspx"&gt;evangelist&lt;/A&gt;... Bummer,&amp;nbsp;måste försöka lura till mig ett jobb på våning&amp;nbsp;fem... ;-)&lt;/P&gt;
&lt;P&gt;Idag tog vi andra steget mot att låta vår &lt;A href="http://www.mickesvarld.net/blog/PermaLink,guid,30c04994-ccc2-442c-91b7-a00f1c83b21a.aspx" mce_href="http://www.mickesvarld.net/blog/PermaLink,guid,30c04994-ccc2-442c-91b7-a00f1c83b21a.aspx"&gt;son&lt;/A&gt; få växa upp med möjligheten att imponera på det motsatta könet genom att &lt;A href="http://em-ntserver.unl.edu/Mechanics-Pages/Matt-Semke/The%20Statics%20of%20Cow%20Tipping.htm" mce_href="http://em-ntserver.unl.edu/Mechanics-Pages/Matt-Semke/The%20Statics%20of%20Cow%20Tipping.htm"&gt;välta kor&lt;/A&gt;! Precis som sin pappa... Snart är det dags att flytta norröver... Cool...&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#808080&gt;&lt;EM&gt;Ten fingers we have each&lt;BR&gt;Nine planets around the sun repeat&lt;BR&gt;Eight ball is the last if you triumphant be&lt;BR&gt;Seven oceans pummel the shores of the sea&lt;BR&gt;&lt;BR&gt;It's a typical situation&lt;BR&gt;In these typical times&lt;BR&gt;Too many choices...&lt;/EM&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1690704" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/deurell/archive/tags/Personal/default.aspx">Personal</category><category domain="http://blogs.msdn.com/deurell/archive/tags/WCF/default.aspx">WCF</category></item><item><title>Wrapped/Bare</title><link>http://blogs.msdn.com/deurell/archive/2006/12/13/wrapped-bare.aspx</link><pubDate>Wed, 13 Dec 2006 21:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1690563</guid><dc:creator>mikaeld</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/deurell/comments/1690563.aspx</comments><wfw:commentRss>http://blogs.msdn.com/deurell/commentrss.aspx?PostID=1690563</wfw:commentRss><description>&lt;P&gt;I linje med Roy Osheroves artikel om "The devil wears Prada arkitektur" kommer en härlig uppstickare i WebService modevärlden... Ännu en omgång med Bare/Wrapped diskussioner!!! Jag hjälpte en gammal kollega med en ASMX implementation häromdagen, han ville ha bort de där &lt;EM&gt;weirda&lt;/EM&gt; "root elementet" som bara såg fult ut och inte tillförde något, hur göra? Om du undrar vad det hela är&amp;nbsp;så kommer här en liten förklaring...&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;STRONG&gt;&lt;FONT face=Verdana&gt;Wrapped&lt;/FONT&gt;:&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;BR&gt;&amp;lt;soap:Envelope xmlns:xsi="&lt;/FONT&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance" mce_href="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;FONT face="Courier New"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Courier New"&gt;" xmlns:xsd="&lt;/FONT&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" mce_href="http://www.w3.org/2001/XMLSchema"&gt;&lt;FONT face="Courier New"&gt;http://www.w3.org/2001/XMLSchema&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Courier New"&gt;" xmlns:soap="&lt;/FONT&gt;&lt;A href="http://schemas.xmlsoap.org/soap/envelope/" mce_href="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;FONT face="Courier New"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Courier New"&gt;"&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;soap:Body&amp;gt;&lt;BR&gt;&lt;FONT color=#ff0000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;lt;VoteResponse xmlns="&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;A href="http://idol2007.votingservices.servicecontracts/2006/12" mce_href="http://idol2007.votingservices.servicecontracts/2006/12"&gt;&lt;FONT face="Courier New" color=#ff0000&gt;&lt;STRONG&gt;http://Idol2007.VotingServices.ServiceContracts/2006/12&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#ff0000&gt;&lt;STRONG&gt;"&amp;gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;VotingRequestResponse&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ResultCode&amp;gt;int&amp;lt;/ResultCode&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Status&amp;gt;string&amp;lt;/Status&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/VotingRequestResponse&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;FONT color=#ff0000&gt;&amp;lt;/VoteResponse&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR&gt;&amp;nbsp; &amp;lt;/soap:Body&amp;gt;&lt;BR&gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Bare:&lt;BR&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;BR&gt;&amp;lt;soap:Envelope xmlns:xsi="&lt;/FONT&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance" mce_href="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;FONT face="Courier New"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Courier New"&gt;" xmlns:xsd="&lt;/FONT&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" mce_href="http://www.w3.org/2001/XMLSchema"&gt;&lt;FONT face="Courier New"&gt;http://www.w3.org/2001/XMLSchema&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Courier New"&gt;" xmlns:soap="&lt;/FONT&gt;&lt;A href="http://schemas.xmlsoap.org/soap/envelope/" mce_href="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;FONT face="Courier New"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Courier New"&gt;"&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;soap:Body&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#ff0000&gt;&lt;STRONG&gt;&amp;lt;VotingRequestResponse xmlns="&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;A href="http://idol2007.votingservices.servicecontracts/2006/12" mce_href="http://idol2007.votingservices.servicecontracts/2006/12"&gt;&lt;FONT face="Courier New" color=#ff0000&gt;&lt;STRONG&gt;http://Idol2007.VotingServices.ServiceContracts/2006/12&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#ff0000&gt;&lt;STRONG&gt;"&amp;gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ResultCode&amp;gt;int&amp;lt;/ResultCode&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Status&amp;gt;string&amp;lt;/Status&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#ff0000&gt;&lt;STRONG&gt;&amp;lt;/VotingRequestResponse&amp;gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp; &amp;lt;/soap:Body&amp;gt;&lt;BR&gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Utav en mindre bra anledning är default wrapped under ASMX. Detta kan leda till lite problem när vi går över till WCF så det är inte helt fel att veta vad man skall skruva på för att ställa detta beteende. Då jag tydligen har lite dåligt minne och jag vet att ServiceFactory har en vacker liten combo för att välja wrapped/bare så slängde jag ihop ett enkelt ServiceFactoryexempel för att hitta aktuellt attribut, så här gör ServiceFactory implementationen;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;namespace&lt;/SPAN&gt; Idol2007.VotingServices.ServiceContracts&lt;BR&gt;{&lt;BR&gt;[System.Web.Services.WebService(Namespace &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"http://Idol2007.VotingServices.ServiceContracts/2006/12"&lt;/SPAN&gt;, Name &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"VotingService"&lt;/SPAN&gt;)]&lt;BR&gt;[System.Web.Services.WebServiceBindingAttribute(ConformsTo &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; System.Web.Services.WsiProfiles.BasicProfile1_1, EmitConformanceClaims &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;true&lt;/SPAN&gt;, Name &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"VotingService"&lt;/SPAN&gt;)]&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;public&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;interface&lt;/SPAN&gt; IVotingService&lt;BR&gt;{&lt;BR&gt;&lt;BR&gt;[System.Web.Services.WebMethodAttribute(MessageName &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Vote"&lt;/SPAN&gt;)]&lt;BR&gt;[System.Web.Services.Protocols.SoapDocumentMethodAttribute(Action &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"http://Idol2007.VotingServices.ServiceContracts/2006/12/Vote"&lt;/SPAN&gt;, ParameterStyle &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; &lt;FONT color=#ff0000 size=2&gt;&lt;STRONG&gt;&lt;EM&gt;System.Web.Services.Protocols.SoapParameterStyle.Bare&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;)]&lt;BR&gt;Idol2007.VotingServices.ServiceContracts.VotingRequestResponse Vote(Idol2007.VotingServices.ServiceContracts.VotingRequestRequest VoteRequest);&lt;BR&gt;}&lt;BR&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;FONT face=Verdana size=2&gt;Kom ihåg den lilla otäcka buggen med att om vi anger namespace på interfacenivå (som i IVotingServices ovan) så kommer vi högaktningsfullt strunta i det i er ServiceImplementation (Tack för kaffet! &lt;EM&gt;&lt;FONT color=#808080&gt;Bra ungdomlig kommentar Micke...).&lt;/FONT&gt;&lt;/EM&gt; Ni måste alltså göra detta igen om ni inte vill ha en klassisk hemsk tempUri. ServiceFactory sätter detta på både Interface och Implementationsnivå för att kompensera beteendet (buggen!) enligt nedan;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;FONT face=Verdana size=2&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;namespace&lt;/SPAN&gt; Idol2007.VotingServices.ServiceImplementation&lt;BR&gt;{&lt;BR&gt;[System.Web.Services.WebService(Namespace &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"http://Idol2007.VotingServices.ServiceContracts/2006/12"&lt;/SPAN&gt;, Name &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"VotingService"&lt;/SPAN&gt;)]&lt;BR&gt;[System.Web.Services.WebServiceBindingAttribute(ConformsTo &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; System.Web.Services.WsiProfiles.BasicProfile1_1, EmitConformanceClaims &lt;SPAN style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;true&lt;/SPAN&gt;)]&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;public&lt;/SPAN&gt; &lt;SPAN style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;class&lt;/SPAN&gt; VotingService : Idol2007.VotingServices.ServiceContracts.IVotingService&lt;BR&gt;{...&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;BR&gt;}&lt;BR&gt;}&lt;/SPAN&gt;&lt;BR&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;FONT face=Verdana size=2&gt;Blev lovad finöl som tack för hjälpen, så många öl som jag har innestående&amp;nbsp;från kollegor från min tid innan Microsoft... Ser fram emot en gratis helkväll!!! :-)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;FONT face=Verdana color=#808080 size=2&gt;&lt;EM&gt;"What a beautiful wedding!, What a beautiful wedding!" says a bridesmaid to a waiter. &lt;BR&gt;"Ah yes, but what a shame, what a shame, the poor groom's bride is a ......" &lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;BR&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1690563" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/deurell/archive/tags/WCF/default.aspx">WCF</category></item><item><title>WCF Versioning</title><link>http://blogs.msdn.com/deurell/archive/2006/12/12/wcf-versioning.aspx</link><pubDate>Tue, 12 Dec 2006 21:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1690548</guid><dc:creator>mikaeld</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/deurell/comments/1690548.aspx</comments><wfw:commentRss>http://blogs.msdn.com/deurell/commentrss.aspx?PostID=1690548</wfw:commentRss><description>&lt;P&gt;Min absoluta favortitslide från Craig McMurtrys WCF-versionshanteringssessioner. Var tvungen att lägga upp den! Höll en kurs i ASMX WebServices&amp;nbsp;under&amp;nbsp;två år för Learning Tree och vi ägnade en halv dag åt versionhantering i ASMX världen. Jag svettades alltid lite extra mycket när jag skulle förklara den "aningen" förstoppade WSDL som spottades ut när vi drog in version 3 av den aktuella tjänsten... Det var precis såhär det skulle ha varit från början...&amp;nbsp;Wild Copper... I Love You!&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;IMG src="http://www.mickesvarld.net/blog/content/binary/versioning.jpg" border=0&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;He doesn't look a thing like Jesus&lt;BR&gt;But he talks like a gentleman &lt;BR&gt;Like you imagined when you were &lt;A href="http://www.thekillersmusic.com/"&gt;young&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1690548" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/deurell/archive/tags/WCF/default.aspx">WCF</category></item></channel></rss>