node.js - Consuming Magento SOAP API with Node JS -


i'm using soap npm try customer, right i'm getting undefined in user list console log

var soap = require('soap');

soap.createclient(url, function (err, client) {

    client.login(args, function (err, session, client) {         console.log(session);          session = session.result;         client.customercustomerlist(session , function (err, list){           if(!err){             console.log(client);             console.log('user list', list);           }else{             console.log(err);           }         });     });  }); 

i haven't found reliable soap module node.js yet. after spending time trying debug or modify popular ones on npm, took advice offered in answer https://stackoverflow.com/a/22897376. has worked me far.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -