Fix connections

This commit is contained in:
ashatora
2024-05-01 13:10:37 +03:00
parent 795074c7ab
commit a9fa949df8
2 changed files with 13 additions and 2 deletions

11
examples/query.json Normal file
View 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
}
}

View File

@@ -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)