Fix connections
This commit is contained in:
11
examples/query.json
Normal file
11
examples/query.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"files": [],
|
||||
"url": "http://10.10.8.79:7000/xmlrpc",
|
||||
"params": {
|
||||
"from": "tcp://kptsp_vb",
|
||||
"query_data": "<?xml version=\"1.0\" encoding=\"utf-8\"?><request><header parcel_id=\"990715ba919544a98f22cc7d3b0d9e8d\"/><data>{}</data></request>",
|
||||
"query_type": 97,
|
||||
"to": "tcp://bnd127",
|
||||
"user_id": 0
|
||||
}
|
||||
}
|
||||
@@ -172,8 +172,8 @@ def get_data(params, files, url):
|
||||
rxmls.set_result(res, 0, '')
|
||||
request_string = req.find('data').text
|
||||
|
||||
OODBWorkspaceFactory.init('config/workspaces.json')
|
||||
conf = ResponseWorkerConfig('config/response2.json', 'config/workspaces.json')
|
||||
OODBWorkspaceFactory.init('/app/query_itv/config/workspaces.json')
|
||||
conf = ResponseWorkerConfig('/app/query_itv/config/response2.json', '/app/query_itv/config/workspaces.json')
|
||||
worker = ResponseWorker(conf)
|
||||
fn = uuid4().hex
|
||||
dir = os.path.join(os.getcwd(), 'tmp', fn)
|
||||
|
||||
Reference in New Issue
Block a user