Hey Christian,
It looks like an Axis data binding error is being returned as a fault.
This indicates that the server doesn't like the soap message.
Which version of suds are you using?
I just tried this service using the 0.2.2 release candidate on svn trunk
and it seemed to work just fine. Note, I'm using the 2nd generation API
which uses the Client instead of ServiceProxy.
from suds.client import Client
url = "http://www.thomas-bayer.com/axis2/services/BLZService?wsdl"
client = Client(url)
print client
print client.service.getBank("76251020")
service (BLZService)
prefixes:
ns0 = "http://thomas-bayer.com/blz/"
methods:
getBank(blz{xs:string}, )
types:
detailsType
getBankType
getBankResponseType
getBankType
getBankResponseType
(detailsType){
bezeichnung = (Sparkasse i Landkreis Neustadt a d Aisch)
bic = (BYLADEM1NEA)
ort = (Neustadt a.d.Aisch)
plz = (91405)
}
Please give this a try and let me know how you make out. I've attached
a tarball ( of the latest on trunk ) for you convenience and just in
case you don't have access to subversion.
Thanks for your interest in Suds!
Regards,
Jeff
Christian Klinger wrote:
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 = ()
}
_______________________________________________
fedora-suds-list mailing list
fedora-suds-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-suds-list