I try to call a method using a SOAP request by using SOAPpy on Python 2.7.5 The method is called GetCursOnDate
and returns exchange rates. It takes a datetime parameter.
I'm using the following code:
from SOAPpy import WSDL
from SOAPpy import Types
# you can download this and use it locally for better performance
wsdl = "http://www.cbr.ru/DailyInfoWebServ/DailyInfo.asmx?wsdl"
namespace = "http://web.cbr.ru/"
input = Types.dateType(name = (namespace, "On_date"))
proxy = WSDL.Proxy(wsdl, namespace = namespace)
proxy.soapproxy.config.debug = 1
proxy.GetCursOnDate(input)
The problem is how to get a body of the SOAP response with the exchange rates