#!/usr/bin/python
print('Content-Type: application/json')
print
from nira_proxy import proxy as nproxy
import json
import os
import cgi
import sys
sys.stderr = sys.stdout
data = sys.stdin.read()

datastr  = json.loads(data)

wsdl =  'http://154.72.206.138:8080/pilatusp2-tpi2-ws/ThirdPartyInterfaceNewWS?wsdl'
password = 'DaR@ds!'
username = 'KampalaCapitalCity@ROOT'

certificate_file_path =  '/home/wabendo/Desktop/nira.der'

#enc_p = encrypt_pwd_with_PyCrypto(password, certificate_file_path)

proxy = nproxy(wsdl, username,password,certificate_file_path)

person =  proxy.parse_request(proxy.send_request(proxy.get_person('CM930121003EGE')))

print(person)










