Re: Help with SOAPpy and WSDL.

Discussion in 'Python' started by Henrik Aagaard Sørensen, Nov 2, 2009.

  1. 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 <>:
    > > 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/>.
    >
     
    Henrik Aagaard Sørensen, Nov 2, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vivek
    Replies:
    0
    Views:
    2,590
    Vivek
    Aug 4, 2004
  2. Miki Tebeka
    Replies:
    0
    Views:
    604
    Miki Tebeka
    Oct 11, 2005
  3. Rodney

    SOAPpy SOAP and/or WSDL Question

    Rodney, Dec 4, 2005, in forum: Python
    Replies:
    0
    Views:
    386
    Rodney
    Dec 4, 2005
  4. Replies:
    1
    Views:
    571
    Dieter Maurer
    Mar 8, 2006
  5. sberry

    SOAPpy / WSDL help... please

    sberry, Oct 30, 2007, in forum: Python
    Replies:
    1
    Views:
    722
    sberry
    Oct 31, 2007
Loading...

Share This Page