Windows store application calls SharePoint Service

Source: Internet
Author: User

I have no experience in developing SharePoint before. Recently I made a small project for Windows store and SharePoint Service. Thanks to my friends, I would like to sum up my experience here for your reference.

First, each Page or WebSite of ShearPoint has its own powerful WebService or WCF. You only need to add

Do not forget to check the Private Network and Enterprise Authentication options in the appxmanifest file after the reference is completed because my project can be logged on in the Company domain using the windows integrated Authentication method.

This error is caused by a network connection error.

The second way to obtain the content of a form is to call the method.

          Task<XElement> GetDataFromService( serviceName,  userName = ,  password = ,  domain = =  binding ==== = =  client.GetListItemsAsync(serviceName, .Empty, , , , ,   MessageSecurityException(  EndpointNotFoundException(

 

The previous method will return an XElement, which requires manual parsing but is also very simple.

  Task<ObservableCollection<DashBoard>> GetDashBoard( userName = ,  password = ,  domain = =  GetDataFromService( items = result =  o  = o.Attribute(= o.Attribute(= o.Attribute(<DashBoard> List =  ObservableCollection<DashBoard>

 

The usage is relatively simple here to pave the way for future students

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.