<?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>Wed, 18 Jan 2012 23:31:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</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-caring">
<ul class="socials">
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+access+web+services+from+silverlight+app&amp;link=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;notes=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&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+access+web+services+from+silverlight+app&amp;link=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;notes=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&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+access+web+services+from+silverlight+app&amp;link=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;notes=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&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" 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-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+access+web+services+from+silverlight+app&amp;link=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;notes=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&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+access+web+services+from+silverlight+app&amp;link=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;notes=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&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+access+web+services+from+silverlight+app&amp;link=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;notes=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&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=52&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+access+web+services+from+silverlight+app&amp;link=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;notes=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&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-mail">
			<a href="http://www.shareaholic.com/api/share/?title=How%20to%20access%20web%20services%20from%20silverlight%20app&amp;link=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;notes=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&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="shr-printfriendly">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+access+web+services+from+silverlight+app&amp;link=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;notes=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&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=236&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+access+web+services+from+silverlight+app&amp;link=http://blog.siliconverse.com/2009/06/29/how-to-access-web-services-from-silverlight-app/&amp;notes=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&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=74&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><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>

