We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could you help with this? Doesn't seem to work for asmx services. I'm getting a 401 error
` spauth.getAuth(siteUrl, settings) .then(options => {
let headers = options.headers; headers['Content-Type'] = 'text/xml'; headers['SOAPAction'] = 'http://schemas.microsoft.com/sharepoint/soap/GetSite'; var data = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetSite xmlns="http://schemas.microsoft.com/sharepoint/soap/" /></soap:Body></soap:Envelope>'; request.post(siteUrl + '/_vti_bin/SiteData.asmx', { body: data, headers: headers }).then(response => { debugger; //process data }); });`
The text was updated successfully, but these errors were encountered:
Which kind of auth do you use?
Sorry, something went wrong.
Cloud AppOnly credentials
App-only creds don't work with asmx services. You could try user\password auth instead.
No branches or pull requests
Could you help with this?
Doesn't seem to work for asmx services.
I'm getting a 401 error
`
spauth.getAuth(siteUrl, settings)
.then(options => {
The text was updated successfully, but these errors were encountered: