Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40501
| References | <CANWwTF-c+r0mS_qGYkKvHcff7NSGM0QoUJaJG1nxFsxwpA=xLw@mail.gmail.com> <CAPM-O+zEq5LbLqTzrX_Jkq0rROrVG-Jv658qVXX049rSr3i84Q@mail.gmail.com> |
|---|---|
| Date | 2013-03-05 10:32 +0530 |
| Subject | Re: Python SUDS issue |
| From | VGNU Linux <vgnulinux@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2866.1362459737.2939.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Hi, Typing URL in the browser displays document tree as a web page. Is it right or there is something wrong with it ? Regards, VGNU On Mon, Mar 4, 2013 at 6:45 PM, Joel Goldstick <joel.goldstick@gmail.com>wrote: > > > > 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 VGNU Linux <vgnulinux@gmail.com> - 2013-03-05 10:32 +0530
csiph-web