In a public internet scenario, is it possible to call the SharePoint Web Services from within a Silverlight application (hosted in the same site)? Is this secure?
The SharePoint site is a public-facing one.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes it is possible. Assuming the Silverlight app is loaded from the same host as the Sharepoint site, you should be able to just create a Service Reference to the Sharepoint Web Services.
If it is not the same host, you will have to create a clientaccesspolicy.xml file (google it) and deploy it to your Sharepoint site in order allow your Silverlight app to access the Sharepoint Web Services.
Credentials ought to flow through, as the default is for SL to use the Browser’s network stack – and the browser ought to have already authenticated to Sharepoint. If that is not the case, then you will have some work to do in that regard.
As far as it being secure – well that depends on what you mean by secure. It will be as secure as someone accessing the Sharepoint site with a browser. To make it truly secure you would have to put the site behind SSL, and access the Web Services through SSL.