[Fedora-suds-list] suds client problem

Christian Klinger cklinger at novareto.de
Mon Jun 16 07:45:09 UTC 2008


Hi suds-users,

i try to use the suds-library to access this web-service:
http://www.thomas-bayer.com/axis2/services/BLZService?wsdl

Unfortunatly i run into some errors.
Maybe someone of you has some tips for me.

Thanks in advance:
Christian


++++++++ client  ++++++++++++++

from suds.serviceproxy import ServiceProxy
url = "http://www.thomas-bayer.com/axis2/services/BLZService?wsdl"
client = ServiceProxy(url)
print client
blz = client.getBank("76251020")

+++++++++ error +++++++++++++

service (BLZService)
	prefixes:
		http = "http://schemas.xmlsoap.org/wsdl/http/"
		mime = "http://schemas.xmlsoap.org/wsdl/mime/"
		soap = "http://schemas.xmlsoap.org/wsdl/soap/"
		soap12 = "http://schemas.xmlsoap.org/wsdl/soap12/"
		tns = "http://thomas-bayer.com/blz/"
		wsaw = "http://www.w3.org/2006/05/addressing/wsdl"
		wsdl = "http://schemas.xmlsoap.org/wsdl/"
		xsd = "http://www.w3.org/2001/XMLSchema"

	methods:
		getBank(blz{xsd:string})

Traceback (most recent call last):
  File "soa.py", line 5, in ?
    status = client.getBank("76251020")
  File "build/bdist.macosx-10.3-i386/egg/suds/serviceproxy.py", line  
112, in __call__
suds.WebFault: service endpoint raised fault (Fault){
   faultcode = (soapenv:Server)
   faultstring = (org.apache.axis2.databinding.ADBException:  
Unexpected subelement blz)
   detail = ()
}




More information about the suds mailing list