var soap = require('soap');
var url = 'http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl';
var args = { byProvinceName: '浙江'};
function push(callback)
{
soap.createClient(url, function(err, client) {
client.getSupportCity(args, function(err, result) {
if (err) {
console.log(err);
}else {
//console.log(result);
callback(result);
}
});
});
}
push(function print(err,data){
if(err)
{
console.log(err);
}
console.log(data);
});