Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

In my silverlight application I need to call a WCF service. I have to pass a string variable as input and return an array list from the WCF service.

If anyone have any idea how to call WCF service or pass perameters to the WCF service please reply me.

Thanks in Advance.
Posted

If you are using Visual Studio 2008, you need to install Silverlight Tool for Visual Studio. You will see the Silverlight Project template in "New Project" dialog after installation.

1. Chose Silverlight Application and check the check box for ASP.NET project for hosting Silverlight.

2. Add Silverlight-Enabled WCF service in ASP.NET

3. Write a method with parameter and return the array list that you want.

4. Build the ASP.NET project

5. Add this service as a service reference in Silverlight project.

6. then, you will be able to see the method that you write in Silverlight-Enabled WCF service


Hope it helps.

 
Share this answer
 
Read Article and Download sample application from my blog.This will help you,

Silverlight with WCF Service[^]
 
Share this answer
 
v2


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900