Hooking into proxy creation using slsvcutil.exe

Adding a service reference is straightforward because of Visual Studio. The IDE searches for available services and when found, adds the service reference in the Silverlight application. It is also capable of generating the proxy class and it offers several choices for this generation such as the used collection type.

However, we may not always have Visual Studio available for this task. Luckily, the Silverlight SDK contains a command-line tool called the Silverlight Metadata Utility Tool (slsvcutil.exe) that is also capable of generating a proxy. It offers a wide range of parameters that can help us to customize how the generated code should look. In this recipe, we'll look at the tool and some ...

Get Silverlight 4 Data and Services Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.