Last active
December 10, 2015 10:09
-
-
Save abernix/34c28442b039c55970e6 to your computer and use it in GitHub Desktop.
VdanV
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
Dosare = new Meteor.Collection('dosare'); | |
var soap = Meteor.npmRequire('soap'); | |
var startDate = '2014-01-10'; | |
var stopDate = '2014-01-12'; | |
var url = 'http://portalquery.just.ro/Query.asmx?wsdl'; | |
var args = { | |
institutie: 'CurteadeApelBUCURESTI', | |
data_start: startDate, | |
data_stop: stopDate | |
}; | |
var data = Async.runSync(function(done) { | |
soap.createClient(url, function (err, client) { | |
client.CautareDosare(args, done); | |
}); | |
}); | |
_.each(data.result.CautareDosareResult.Dosar, function(data, index) { | |
console.log(data); | |
Dosare.insert(data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment