TypeError: Cannot call method 'GetGeoIP' of undefined
at exports.list (/Users/rrazavipour-lp/Documents/workspace/Astute/routes/user.js:25:15)
at options (/Users/rrazavipour-lp/node_modules/soap/lib/soap.js:46:9)
at endpoint (/Users/rrazavipour-lp/node_modules/soap/lib/soap.js:30:24)
at exports.open_wsdl (/Users/rrazavipour-lp/node_modules/soap/lib/wsdl.js:981:17)
at Request._callback (/Users/rrazavipour-lp/node_modules/soap/lib/http.js:46:13)
at Request.init.self.callback (/Users/rrazavipour-lp/node_modules/soap/node_modules/request/request.js:129:22)
at Request.EventEmitter.emit (events.js:117:20)
at ClientRequest.Request.init.self.clientErrorHandler (/Users/rrazavipour-lp/node_modules/soap/node_modules/request/request.js:239:10)
at ClientRequest.EventEmitter.emit (events.js:95:17)
var soap = require('soap');
var url = 'http://http://www.webservicex.net/geoipservice.asmx?WSDL';
var args = {name: 'value'};
soap.createClient(url, function(err, client) {
client.GetGeoIP(args, function(err, result) {
console.log(result);
});
});
What am I missing?
Thanks
Reza
soap.createClient(url, function(err, client) {
if (err) {
console.log(err);
return;
}
client.GetGeoIP(args, function(err, result) {
console.log(result);
});
});
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
var soap = require('soap');
var url = 'http://www.webservicex.net/stockquote.asmx?WSDL';
var args = {
symbol : 'AMZN'
};
soap.createClient(url, function(err, client) {
client.GetQuote(args, function(err, result) {
if (err) {
console.log(err);
return;
}
console.log(result);
});
});
and in the console all i see is
{ GetQuoteResult: [ 'exception' ] }
Thoughts?
Reza