Created
April 13, 2012 20:17
-
-
Save actuosus/2379859 to your computer and use it in GitHub Desktop.
Trying to get SOAP node module working with Meteor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}); | |
}); |
Всё у меня норм. В .bashrc прописано.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$NODE_PATH у тебя кривой. Ставь заново.