Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40444
| References | <CANWwTF-c+r0mS_qGYkKvHcff7NSGM0QoUJaJG1nxFsxwpA=xLw@mail.gmail.com> |
|---|---|
| Date | 2013-03-04 08:15 -0500 |
| Subject | Re: Python SUDS issue |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2836.1362402909.2939.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
On Mon, Mar 4, 2013 at 5:37 AM, VGNU Linux <vgnulinux@gmail.com> wrote: > 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' > What happens when you type this in your browser: 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 > > -- > http://mail.python.org/mailman/listinfo/python-list > > -- Joel Goldstick http://joelgoldstick.com
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python SUDS issue Joel Goldstick <joel.goldstick@gmail.com> - 2013-03-04 08:15 -0500
csiph-web