<?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>Debugging Web Service Usage in Silverlight 2</title><link>http://blogs.msdn.com/silverlightws/archive/2008/04/16/debugging-web-service-usage-in-silverlight-2.aspx</link><description>(Cross-posted from http://eugeneos.blogspot.com/2008/04/debugging-web-service-usage-in.html ) Silverlight 2 Beta1 makes it easy to use Web Services based on either the WCF technology (Windows Communication Foundation), the “.asmx” technology (ASP.NET</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Microsoft news and tips &amp;raquo; Debugging Web Service Usage in Silverlight 2</title><link>http://blogs.msdn.com/silverlightws/archive/2008/04/16/debugging-web-service-usage-in-silverlight-2.aspx#8399480</link><pubDate>Wed, 16 Apr 2008 22:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8399480</guid><dc:creator>Microsoft news and tips &amp;raquo; Debugging Web Service Usage in Silverlight 2</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://microsoftnews.askpcdoc.com/?p=2878"&gt;http://microsoftnews.askpcdoc.com/?p=2878&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Moving on: From Connected Systems to Sync.</title><link>http://blogs.msdn.com/silverlightws/archive/2008/04/16/debugging-web-service-usage-in-silverlight-2.aspx#8428136</link><pubDate>Sat, 26 Apr 2008 20:30:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8428136</guid><dc:creator>Mahjayar's WebLog.</dc:creator><description>&lt;p&gt;After nearly 4 years with Connected Systems, I have decided to move to the Data Replication and Sync&lt;/p&gt;
</description></item><item><title>Moving on: From Connected Systems to Sync.</title><link>http://blogs.msdn.com/silverlightws/archive/2008/04/16/debugging-web-service-usage-in-silverlight-2.aspx#8428146</link><pubDate>Sat, 26 Apr 2008 20:34:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8428146</guid><dc:creator>Maheshwar Jayaraman</dc:creator><description>&lt;p&gt;Moving on: From Connected Systems to Sync.&lt;/p&gt;
</description></item><item><title>Silverlight Cream for April 26, 2008 -- #260</title><link>http://blogs.msdn.com/silverlightws/archive/2008/04/16/debugging-web-service-usage-in-silverlight-2.aspx#8429885</link><pubDate>Sun, 27 Apr 2008 05:26:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8429885</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;This is a couple new posts and finally catches me up from last week when I was being catered to in Seattle&lt;/p&gt;
</description></item><item><title>re: Debugging Web Service Usage in Silverlight 2</title><link>http://blogs.msdn.com/silverlightws/archive/2008/04/16/debugging-web-service-usage-in-silverlight-2.aspx#8451306</link><pubDate>Fri, 02 May 2008 20:45:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8451306</guid><dc:creator>EWilleke</dc:creator><description>&lt;p&gt;When connecting to a WCF project in the same solution (hosted in IIS) I get this 415 error (Silverlight reports as a 404, but Fiddler tells the truth)&lt;/p&gt;
&lt;p&gt;HTTP/1.1 415 Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'.&lt;/p&gt;
&lt;p&gt;Is this expected, and how might it be caused? I'm using a basicHttpBinding and endpoint that's pointing at my machine with a name instead of localhost.&lt;/p&gt;
</description></item><item><title>re: Debugging Web Service Usage in Silverlight 2</title><link>http://blogs.msdn.com/silverlightws/archive/2008/04/16/debugging-web-service-usage-in-silverlight-2.aspx#8499162</link><pubDate>Tue, 13 May 2008 09:43:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8499162</guid><dc:creator>follesoe</dc:creator><description>&lt;p&gt;Problem with byte order mark:&lt;/p&gt;
&lt;p&gt;Using Fiddler to debug the communication between Silverlight 2 and my Oracle server I've managed to nail the problem:&lt;/p&gt;
&lt;p&gt;Silverlight &amp;nbsp;2 proxy adds a byte-order-mark when creating the UTF-8 SOAP message. This is caousing the Oracle XML parser to fail.&lt;/p&gt;
&lt;p&gt;Is there a way to plug into the Silverlight WCF pipeline to pervent it from adding the BOM to the request?&lt;/p&gt;
</description></item><item><title>re: Debugging Web Service Usage in Silverlight 2</title><link>http://blogs.msdn.com/silverlightws/archive/2008/04/16/debugging-web-service-usage-in-silverlight-2.aspx#8535360</link><pubDate>Fri, 23 May 2008 02:50:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8535360</guid><dc:creator>follesoe</dc:creator><description>&lt;p&gt;Got it working:&lt;/p&gt;
&lt;p&gt;BasicHttpBinding binding = new BasicHttpBinding();&lt;/p&gt;
&lt;p&gt;binding.TextEncoding = new UTF8Encoding(false);&lt;/p&gt;
&lt;p&gt;EndpointAddress address = new EndpointAddress(&amp;quot;youServiceUrl&amp;quot;);&lt;/p&gt;
&lt;p&gt;serviceClient = new GetNewsClient(binding, address);&lt;/p&gt;
&lt;p&gt;The problem is the default UTF8Encoding &amp;nbsp;constructor will make it emit the BOM. You can change this by setting the TextEncoding of the binding to a new UTF8Encoding object, where you pass in false in the constructor to make it NOT emit the BOM when serializing the request.&lt;/p&gt;
</description></item><item><title>re: Debugging Web Service Usage in Silverlight 2</title><link>http://blogs.msdn.com/silverlightws/archive/2008/04/16/debugging-web-service-usage-in-silverlight-2.aspx#8926367</link><pubDate>Fri, 05 Sep 2008 17:32:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8926367</guid><dc:creator>satin</dc:creator><description>&lt;p&gt;Hi Eugene, I've read your post and it's really one of the best I've seen early in the net. But even according all your recomendations it's still a problem to get my services work with my silverlight application. &lt;/p&gt;
&lt;p&gt;The issue is ProtocolException error I'm getting when calling the service. At first I have ran a WebDevelopment Helper and it showed me the first problem you talking about - Hi Eugene, I've read your post and it's really one of the best I've seen early in the net. But even according all your recomendations it's still a problem to &lt;/p&gt;
&lt;p&gt;get my services work with my silverlight application. &lt;/p&gt;
&lt;p&gt;The issue is ProtocolException error I'm getting when calling the service.&lt;/p&gt;
&lt;p&gt;I have tried to fix it with different variations from the net... At first I have ran a WebDevelopment Helper and it showed me the first problem you talking &lt;/p&gt;
&lt;p&gt;about - it was Cross-Domain Issue and there were no files like clientaccesspolicy.xml or crossdomain.xml. So WebDevelopment Helper showed me 404 response for &lt;/p&gt;
&lt;p&gt;these two files. I have created these files and put into a root catalog. This solved the 404 error in WebDevelopment Helper. And now it shows 200. So seems &lt;/p&gt;
&lt;p&gt;to be ok. But now when I running my SL application and it calls to webservice it show me &amp;quot;The remote server returned an unexpected response: (404) Not Found.&amp;quot; ProtocolException was unhandled by user code. I have checked all situations from the net that may be the reason of this issue, cheked web.config, ServiceReferences.ClientConfig, clientaccesspolicy.xml and crossdomain.xml files but nothing helps... Now I really do not know how to get it work. Could you please help me in this issue? Any suggestions will be appreciated. Thanks in advance!!!&lt;/p&gt;
</description></item><item><title>Silverlight Crossdomain Access Workarounds</title><link>http://blogs.msdn.com/silverlightws/archive/2008/04/16/debugging-web-service-usage-in-silverlight-2.aspx#9203797</link><pubDate>Sat, 13 Dec 2008 01:42:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9203797</guid><dc:creator>Jon Galloway</dc:creator><description>&lt;p&gt;I was testing out some typography with Silverlight and figured I’d try grab some text from Wikipedia&lt;/p&gt;
</description></item></channel></rss>