Skip to main content
Home Forums Silverlight Programming Accessing Web Services with Silverlight Calling Wcf service with Async() method ???
2 replies. Latest Post by Sergey.Lutay on November 9, 2009.
(0)
bobbby
Member
53 points
173 Posts
11-05-2009 6:26 AM |
hi friends , i wanna know the reason, why in silverlight we are calling wcf service method like this
SampleWebServiceSoapClient client = new SampleWebServiceSoapClient();
client.HelloWorldCompleted += new EventHandler<HelloWorldCompletedEventArgs>( client_HelloWorldCompleted );
client.HelloWorldAsync();
private void client_HelloWorldCompleted( object sender, HelloWorldCompletedEventArgs e )
{ }
why we cant call wcf service method like calling in aspx page. whats the exact reason to call service like this in silverlight..
Thanks
baskarg83
414 points
127 Posts
11-05-2009 6:40 AM |
hey
check this
http://www.netfxharmonics.com/2008/11/Understanding-WCF-Services-in-Silverlight-2http://stackoverflow.com/questions/122144/calling-wcf-service-from-silverlight
if it is useful "please mark as Answer"
Sergey.L...
Contributor
7256 points
1,354 Posts
11-09-2009 3:48 PM |
Hi,
Calls to serve side are async for does not stop a UI thread of Silverlight application.