Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40440
| Date | 2013-03-04 16:07 +0530 |
|---|---|
| Subject | Python SUDS issue |
| From | VGNU Linux <vgnulinux@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2833.1362393441.2939.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Hi Guys,
I am pretty new to web services.
After some googling found that python suds is a suitable module to create
web service client. I am trying to create a client but its giving me an
error which is quite confusing for me.
Here is my code:
from suds.client import Client
wsdlurl = 'https://46.51.221.138/PBExternalServices/v1/soap?wsdl'
client = Client(wsdlurl)
print client
And following is the error that occurs on trying to print client.
Traceback (most recent call last):
File "trysuds.py", line 3, in <module>
client = Client(wsdlurl)
File "C:\Python25\Lib\site-packages\suds\client.py", line 112, in __init__
self.wsdl = reader.open(url)
File "C:\Python25\Lib\site-packages\suds\reader.py", line 152, in open
d = self.fn(url, self.options)
File "C:\Python25\Lib\site-packages\suds\wsdl.py", line 159, in __init__
self.build_schema()
File "C:\Python25\Lib\site-packages\suds\wsdl.py", line 220, in
build_schema
self.schema = container.load(self.options)
File "C:\Python25\Lib\site-packages\suds\xsd\schema.py", line 95, in load
child.dereference()
File "C:\Python25\Lib\site-packages\suds\xsd\schema.py", line 323, in
dereference
midx, deps = x.dependencies()
File "C:\Python25\Lib\site-packages\suds\xsd\sxbasic.py", line 469, in
dependencies
raise TypeNotFound(self.ref)
suds.TypeNotFound: Type not found: '(GetAccountBalanceFaultResponse,
http://www.payback.net/lmsglobal/xsd/v1/types, )'
Appreciate your help.
Thanks in advance,
VGNU
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Python SUDS issue VGNU Linux <vgnulinux@gmail.com> - 2013-03-04 16:07 +0530
csiph-web