Silverlight Web Service Tutorial
The Microsoft Silverlight Web Service is essentially an API (application programming interface) that can be accessed over the Internet or another network. In order to create new applications and programs with Silverlight, you'll actually be using Microsoft Visual Studio 2008. Its coding interface provides a platform for developing the Web Service. Once the Web Service has been created, you can make calls, configure clients and get data.
Instructions
-
-
1
Open Visual Studio 2008 to create a Silverlight Application Project. In the "File" menu, click "New" and then "Project;" name the project and select its location, then click "OK."
-
2
Create or host your Silverlight Application on a Web page in the "Add Silverlight Application" dialog box. Choose the project type and name, then click "OK." A new application has been created, so you can turn it into a Web service.
-
-
3
Click on "Solution Explorer" in Visual Studio to add a Web Service. Right click on the "Web Site" node, select "Choose Add" and "New Item." Now click on the "Silverlight-enabled WCF Service," choose a name based on the "MyService.asmx" format and click the "Add" button.
-
4
To add a Service Reference, press "Ctrl + Shift + B" to rebuild your Solution. Within "Solution Explorer," right click on "Silverlight Application" node and choose "Add Service Reference." In the "Add Service Reference" dialog box, click "Discover" to locate the Web service. Choose a name in the "Namespace" box and then click "OK." Now the Web Service has been set up.
-
1
References
Resources
- Photo Credit eingabefeld internet http://www image by pmphoto from Fotolia.com