I am using following code to get data from SharePoint List in Acrobat using javascript:

var oAuthenticator ={ UsePlatformAuth: "true"}; 
var oRequest = {
    soapValue: '<GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">'+
  '<listName>' + listId + '</listName>'+
  '<viewName>All Items</viewName>'+

var cAction = "http://schemas.microsoft.com/sharepoint/soap/GetListItems";    
var ver = SOAPVersion.version_1_2; 
var response = SOAP.request ({
     cURL: siteUrl + "_vti_bin/lists.asmx",
     cResponseStyle: SOAPMessageStyle.Message,

Here in response I am getting undefined as it is showing 401 authentication error in fiddler for this service call.

What Authentication I can add here to get it working??

  • Are you running this soap call from the SharePoint page? – Venkat Konjeti Jun 13 '17 at 13:37
  • No i m running it from Acrobat PDF file menu – SynozeN Technologies Jun 13 '17 at 13:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.