<?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>SiliconVerse &#187; code</title>
	<atom:link href="http://blog.siliconverse.com/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.siliconverse.com</link>
	<description>Technology, Business &#38; Life in Digital Village</description>
	<lastBuildDate>Mon, 28 Jun 2010 22:02:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to access web services from silverlight app</title>
		<link>http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/</link>
		<comments>http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 06:34:32 +0000</pubDate>
		<dc:creator>Ruchit</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://blog.siliconverse.com/?p=641</guid>
		<description><![CDATA[I dont usually post technical stuff on this blog, as i dont get to code on my daily office routine, but I have been trying to experiment with Silverlight for a while. Recently, I have spent many hours just to &#8230; <a href="http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I dont usually post technical stuff on this blog, as i dont get to code on my daily office routine, but I have been trying to experiment with Silverlight for a while.</p>
<p>Recently, I have spent many hours just to be able to access a simple hello-world asp.net webservices from a silverlight 2.0 application. Process is pretty simple as explained in <a href="http://timheuer.com/blog/archive/2008/03/14/calling-web-services-with-silverlight-2.aspx" target="_blank">Tim&#8217;s blog post</a>. Create a webservice, include its reference in silverlight project, add an object of soapclient, add handle to the functions ( since calls are async) and then call the actual function.</p>
<p>Everything worked fine, but my app was unable to contact to my webservices, even though i was able to &#8216;discover&#8217; them if I make webservice as part of my complete solution OR could access service functions, if hosted webservices on my localhost (IIS7). I am certainly running into cross domain policy issues. Nothing helped, not even having <strong>crossdomain.xml</strong> or <strong>clientaccesspolicy.xml</strong>.</p>
<p>I could solve this issue by removing these files ( clientaccesspolicy, crossdomain) from C:\inetpub\wwwroot\MyWebService to C:\inetpub\wwwroot\ and everything started working so perfect.</p>
<p>OK, i just found that Tim has another <a href="http://timheuer.com/blog/archive/2008/04/06/silverlight-cross-domain-policy-file-snippet-intellisense.aspx" target="_blank">great post on cross domain policy</a> where he has mentioned that I should copy policy files on the root of the website. Crap! I should read his blog post more often.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;title=How+to+access+web+services+from+silverlight+app" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;title=How+to+access+web+services+from+silverlight+app" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;title=How+to+access+web+services+from+silverlight+app&amp;desc=I%20dont%20usually%20post%20technical%20stuff%20on%20this%20blog%2C%20as%20i%20dont%20get%20to%20code%20on%20my%20daily%20office%20routine%2C%20but%20I%20have%20been%20trying%20to%20experiment%20with%20Silverlight%20for%20a%20while.%0D%0A%0D%0ARecently%2C%20I%20have%20spent%20many%20hours%20just%20to%20be%20able%20to%20access%20a%20simple%20hello-world%20asp.net%20webservices%20from%20a%20silverlight%202.0%20applic" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;bm_description=How+to+access+web+services+from+silverlight+app&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;title=How+to+access+web+services+from+silverlight+app" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;title=How+to+access+web+services+from+silverlight+app" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;title=How+to+access+web+services+from+silverlight+app" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=How+to+access+web+services+from+silverlight+app+-+http://b2l.me/pdq4c&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
