In the Server/URL field, type the machine name for the Fiddler server.Ĭonfigure Fiddler Classic to decrypt HTTPS traffic. This should display the Fiddler Echo Service web site. ![]() To verify this configuration, enable your Windows Phone WiFi connection and visit where FIDDLERSERVER is the machine name for the machine running Fiddler. In the Windows Security Alert dialog, check all three checkboxes and click the Allow Access button. Start Fiddler Classic on the Fiddler server (the machine that will capture the traffic).Ĭlick Tools > Options. HttpWebResponse resp = (HttpWebResponse)asyncReq.Configure Fiddler / Tasks Monitor Windows Phone Configure Fiddler WebReq.Credentials = new NetworkCredential(username, password, domain) HttpWebRequest webReq = (HttpWebRequest)HttpWebRequest.Create(url) String password, string domain, GetAtomFeedCallback cb) Private static void GetAtomFeed(string url, string username, ((HttpWebResponse)asyncReq.EndGetResponse(result)).GetResponseStream()) ![]() HttpWebRequest asyncReq = (HttpWebRequest)result.AsyncState WebReq.Credentials = new NetworkCredential("username", "password") (HttpWebRequest)HttpWebRequest.Create(" ") The following code snippet is getting all the announcements of an Annoucements list in a SharePoint site: So are SharePoint developers out of the Windows Phone development game until they get this fixed? Well luckily not, when the HttpWebRequest class is being used instead, you can pass credentials! Using the HttpWebRequest class is slightly more complex than using the WebClient class, but the end result is that you have access to your precious SharePoint 2010 data. Even more, if the OData Client Library for Windows Phone 7 gets updated after that, things should get even easier! By the way: the things I’m writing in this paragraph are just assumptions that I make which make a lot of sense IMHO, I don’t have any info all of this will happen, but I really hope so. So when Windows Phone platform switches to Silverlight 4, you can just use the WebClient to get the data. Probably this issued will be solved in the very near future, since Silverlight 4 does support authentication, and there’s already a WCF Data Services download that uses this new platform feature of Silverlight 4. This turns out to be a small challenge in Silverlight 3, the WebClient doesn’t support authentication there is a Credentials property but when you set it and make the request you get a NotImplementedException exception. But a Windows Phone application is of course running outside of the SharePoint site’s page, so the application should build credentials that have to be passed to SharePoint’s WCF service. This is very easy to accomplish in a Silverlight application that’s running in the context of a page in a SharePoint site, because the credentials of the currently logged on user are automatically picked up and passed to the WCF service. ![]() Using the REST API in SharePoint 2010 is as easy as making a web request for a URL (in which you specify the data you’d like to retrieve), e.g. My second thought was “OK, no problem!” because SharePoint 2010 also exposes a REST/OData API to access SharePoint data. Unfortunately you can’t use the Client Object Model of SharePoint 2010 on the Windows Phone platform there’s a reference to an assembly that’s not available (). When I first tried to access SharePoint 2010 data from my first Hello-World-type Windows Phone 7 application I thought “Hey, this should be easy!” because Windows Phone 7 development based on Silverlight and SharePoint 2010 has a Client Object Model for Silverlight. The issue is that the SharePoint 2010 data is not anonymously available users need to authenticate to be able to access the data. Consuming SharePoint 2010 data in Windows Phone 7 applications using the CTP version of the developer tools is quite a challenge.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |