Sharepoint authentication via webservice - Microsoft Community


  

i trying consume sharepointwebservices, keep receiving error:

system.web.services.protocols.soapexception: 'server unable process request. ---> access denied. (exception hresult: 0x80070005 (e_accessdenied))'

username, password , domain ( seem correct)

this code using:

 genreqsp.lists bpfiles = new genreqsp.lists();
        bpfiles.url = "https://genreq.sharepoint.com/teamsite/bizplaneasybplans/_vti_bin/lists.asmx";
                         
        //bpfiles.credentials = system.net.credentialcache.defaultcredentials;
        bpfiles.credentials = new system.net.networkcredential(<username>, <password>,<domain>);
        //bpfiles.credentials= new system.net.networkac
        xmldocument xmldoc = new system.xml.xmldocument();
        //create query options node
        xmlnode ndqueryoptions = xmldoc.createnode(xmlnodetype.element, "queryoptions", "");
        //specify folder name
        ndqueryoptions.innerxml = "<folder>4005</folder>";
        //get items
        xmlnode ndlistitems = bpfiles.getlistitems("4005", null, null, null, null, ndqueryoptions,null);
        //display node
        //xmlnode n = bpfiles.getlistitems("my list", null, null, null, null, null,null);
        //xmlnode w_n = bpfiles.getlist("");
        div_folder.innerhtml = ndlistitems.outerxml;

[moved from:office/unknown/other/mac/unknown/other]

hi marcelo,

given description, suggest post new thread in our sharepoint msdn forum for professional support. it's specific channel handles sharepoint customization , development related questions , issues.

thanks understanding.

tim



Office / SharePoint Online / Mac / Unknown/other



Comments

Popular posts from this blog

Can't Sign-in to OneDrive - Microsoft Community

Shared mailbox permissions - Microsoft Community

Outlook 2016 for Mac - Multiple Issues, Error 17884 - Microsoft Community