lstak / node-sharepoint Goto Github PK
View Code? Open in Web Editor NEWConnecting Node and SharePoint
Home Page: http://allthatjs.com/2012/03/29/node-js-meet-sharepoint/
Connecting Node and SharePoint
Home Page: http://allthatjs.com/2012/03/29/node-js-meet-sharepoint/
It no longer works with current versions of SP, no point in trying unless you have the skills to fix the code.
There is a fork being developed by Class-Solutions that seems the best hope but it doesn't yet work.
Hi
I want to access list data from a sharepoint server. Is it available? I am not getting any data or error ins the callback method, what can I do?
Thanks
While using SharePoint with https the module fails. The reason is that it uses the http module always regardless if you pass a url with https.
xml2js 0.2 was published to the NPM repository about three weeks ago.
It seems to break node-sharepoint.
By setting the XML parser defaults back to 0.1 as described in the xml2js README file, the code beginning around line 115 in sharepoint.js will not fail. It does fail using the current defaults.
It looks like there was some delay between the GitHub repository of xml2js being updated and the change being published to the NPM repository.
wen trying to sign in to my share point site it is throwing following error
if (js['S:Body']['S:Fault']) {
^
TypeError: Cannot read property 'S:Fault' of undefined
at E:\My Examples\nodetestsamples\samplechat2\node_modules\sharepoint\sharep
oint.js:114:33
at Parser. (E:\My Examples\nodetestsamples\samplechat2\node_modul
es\sharepoint\sharepoint.js:27:21)
at Parser.EventEmitter.emit (events.js:95:17)
at Object.saxParser.onclosetag (E:\My Examples\nodetestsamples\samplechat2\n
ode_modules\sharepoint\node_modules\xml2js\lib\xml2js.js:225:24)
at emit (E:\My Examples\nodetestsamples\samplechat2\node_modules\sharepoint
node_modules\xml2js\node_modules\sax\lib\sax.js:589:33)
at emitNode (E:\My Examples\nodetestsamples\samplechat2\node_modules\sharepo
int\node_modules\xml2js\node_modules\sax\lib\sax.js:594:3)
at closeTag (E:\My Examples\nodetestsamples\samplechat2\node_modules\sharepo
int\node_modules\xml2js\node_modules\sax\lib\sax.js:834:5)
at Object.write (E:\My Examples\nodetestsamples\samplechat2\node_modules\sha
repoint\node_modules\xml2js\node_modules\sax\lib\sax.js:1253:29)
at Parser.exports.Parser.Parser.parseString (E:\My Examples\nodetestsamples
samplechat2\node_modules\sharepoint\node_modules\xml2js\lib\xml2js.js:264:29)
at Parser.parseString (E:\My Examples\nodetestsamples\samplechat2\node_modul
es\sharepoint\node_modules\xml2js\lib\xml2js.js:77:45)
I am using the following code to login
var SP = require('sharepoint'),
site = 'http://vsp113:11291/sites/ChatroomSite',
username = 'domainname\username',
password = 'password',
spclient = new SP.RestService(site);
spclient.signin(username, password, function (err,data) {
// At this point, authentication is complete,
// so we can do requests.
if(err)
{
console.log('error occourec : '+err);
}
console.log('sharepoint login completed sucessfull');
});
it is not even entering the if (err) block
Wiresharked the URL the .js is sending,... it's the right URL. When I put that URL in a browser I can log in and it works.
Can you recommend a tool that will help me debug the SAML challenge and response? I can't seem to find out where my auth is going wrong.
This is broken completely. Presumably it hasn't been updated for SharePoint 2013.
In sharepoint.js:
if (js['S:Body']['S:Fault']) {
isn't valid, there is an additional level of data, it should be:
if (js['S:Envelope']['S:Body']['S:Fault']) {
but that doesn't work either since it just fails later.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.