Skip to content

Instantly share code, notes, and snippets.

@actuosus
Created April 13, 2012 20:17
Show Gist options
  • Save actuosus/2379859 to your computer and use it in GitHub Desktop.
Save actuosus/2379859 to your computer and use it in GitHub Desktop.
Trying to get SOAP node module working with Meteor.
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
ReferenceError: require is not defined
at app/node_modules/soap/node_modules/node-expat/lib/node-expat.js:1:20
at /Users/actuosus/Projects/leaderboard/.meteor/local/build/server/server.js:111:21
at Array.forEach (native)
at Function.<anonymous> (/Users/actuosus/Projects/leaderboard/.meteor/local/build/server/underscore.js:76:11)
at /Users/actuosus/Projects/leaderboard/.meteor/local/build/server/server.js:97:7
Exited with code: 1
var soap = __meteor_bootstrap__.require('soap');
var url = 'http://www.restfulwebservices.net/wcf/WeatherForecastService.svc?wsdl';
var args = {tns: 'New York'};
soap.createClient(url, function(err, client) {
client.GetForecastByCity(args, function(err, result) {
console.log(result);
});
});
@klen
Copy link

klen commented Apr 14, 2012

$NODE_PATH у тебя кривой. Ставь заново.

@actuosus
Copy link
Author

Всё у меня норм. В .bashrc прописано.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment