Help with SOAPpy and WSDL.

Henrik Aagaard Sørensen henrik.sorensen at changenetworks.dk
Mon Nov 2 09:25:37 EST 2009


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:
Traceback (most recent call last):
  File "pythonwsdl.py", line 4, in <module>
    server.GetCurrencyByCountry('Zimbabwe')
  File "/var/lib/python-support/python2.6/SOAPpy/Client.py", line 470,
in __call__
    return self.__r_call(*args, **kw)
  File "/var/lib/python-support/python2.6/SOAPpy/Client.py", line 492,
in __r_call
    self.__hd, self.__ma)
  File "/var/lib/python-support/python2.6/SOAPpy/Client.py", line 406,
in __call
    raise p
SOAPpy.Types.faultType: <Fault soap:Server:
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".



On Mon, 2009-11-02 at 12:58 +0000, Simon Brunning wrote:
> 2009/11/2 Henrik Aagaard Sørensen <henrik.sorensen at changenetworks.dk>:
> > I have a problem with SOAPpy and WSDL. It is explained here:
> > http://www.python-forum.org/pythonforum/viewtopic.php?f=3&t=15532
> 
> Why not explain it here?
> 
> In any case, I imagine the advice is going to be to try Suds -
> <https://fedorahosted.org/suds/>.
> 




More information about the Python-list mailing list