00001 var Client = require('../lib/client')
00002 var http = require('http')
00003
00004 var options = { host: 'localhost', port: 9994, path: '/', method: 'POST' }
00005 var chunk1 = '<?xml version="1.0" encoding="UTF-8"?>'
00006 + '<methodCall>'
00007 + '<methodName>testMethod</methodName>'
00008 + '<params>'
00009 + '<param>'
00010 + '<value><string>Param A</string></value>'
00011 + '</param>'
00012 + '<param>'
00013 + '<value><string>Param B</string></value>'
00014 + '</param>'
00015 + '</params>'
00016 + '</methodCall>';
00017
00018 var req = http.request(options, function(res) {
00019 setTimeout(function () { console.log('too late'); }, 5000)
00020 })
00021
00022 req.on('error', function(e) {
00023
00024 })
00025 req.write(chunk1);
00026 req.end();
00027
00028