dave-cz

Untitled

Jul 2nd, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2.  
  3. var winston = require('winston'),
  4.     soap = require('soap'),
  5.    
  6.     url = 'http://weather.rcware.eu:9876/WeatherForecast',
  7.     args = {"licence":"myCompanyPrivateLicense", // sorry, i can't public this
  8.         "forecastPointId":1,
  9.         "timeStep":3600,
  10.         "begin":"2013-07-01T05:57:16Z",
  11.         "end":"2013-07-03T05:57:16Z",
  12.         "variableCommonName":"TMAX-2m"
  13.     };
  14.  
  15. winston.add(winston.transports.File, {
  16.     filename: './log/weather2.log',
  17.     handleExceptions: true
  18. });
  19.  
  20. soap.createClient(url, function(err, client) {
  21.     if (err) {
  22.         winston.log('error', err);
  23.     }
  24.     winston.log('info', client);
  25.     /*client.GetWeatherDataInterval(args, function(err, result) {
  26.         if (err) {
  27.             winston.log('warn', err);
  28.         }
  29.         winston.log('info', result);
  30.     });*/
  31. });
Advertisement
Add Comment
Please, Sign In to add comment