how to access Sharepoint Data in Silverlight Webpart

Oct 30, 2008 at 9:59 AM

i want to create silverlight webpart having data from sharepoint list.
and whenever user access this webpart there may be server postback to get more data
i tried :
    1. using HttpWebRequest
                - but getting error due to Credential issue
                - error like Request for the permission of type 'System.Net.WebPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    2. using custom Wcf service and adding that service in Silverlight webpart app
             - but again issue is how to pass current user credential
is there any other  way to solve this problem
thanks in advance.
Suyog Kale
Sr. Software engg, SpadeWorx