When you right-click on the Service References node in Solution Explorer and select Add Service Reference.. , you can add the service link to your silverlight project. You will see some additional node in your csproject project and in the "Service Links" folder you will see a bunch of auto-generated files that will help you easily connect to the service and call methods
Then your project will look something like this.
<ItemGroup> <WCFMetadata Include="Service References\" /> </ItemGroup> <ItemGroup> <WCFMetadataStorage Include="Service References\ServiceReference1\" /> </ItemGroup> <ItemGroup> <None Include="Service References\ServiceReference1\Foo-Web-Services-Bar.disco" /> </ItemGroup> <ItemGroup> <None Include="Service References\ServiceReference1\configuration91.svcinfo" /> </ItemGroup> <ItemGroup> <None Include="Service References\ServiceReference1\configuration.svcinfo" /> </ItemGroup> <ItemGroup> <None Include="Service References\ServiceReference1\Reference.svcmap"> <Generator>WCF Proxy Generator</Generator> <LastGenOutput>Reference.cs</LastGenOutput> </None> </ItemGroup>
Yours is empty because you have not added any service links
source share