Help with SOAPpy and WSDL.
Simon Brunning
simon at brunningonline.net
Mon Nov 2 09:30:54 EST 2009
2009/11/2 Henrik Aagaard Sørensen <henrik.sorensen at changenetworks.dk>:
> I'll try to explain it here then:
>
> A small example on SOAPpy and WSDL. My code:
> from SOAPpy import WSDL
> wsdlFile = 'http://www.webservicex.net/country.asmx?wsdl'
> server = WSDL.Proxy(wsdlFile)
> server.GetCurrencyByCountry('Zimbabwe')
>
> returns:
> System.Web.Services.Protocols.SoapException: Server was unable to
> process request. ---> System.Data.SqlClient.SqlException: Procedure or
> function 'GetCurrencyByCountry' expects parameter '@name', which was not
> supplied.
> at WebServicex.country.GetCurrencyByCountry(String CountryName)
> --- End of inner exception stack trace ---: >
>
>
> It is as if it doesn't get the name "Zimbabwe".
Try server.GetCurrencyByCountry(name='Zimbabwe')
--
Cheers,
Simon B.
More information about the Python-list
mailing list