Python SUDS issue

Joel Goldstick joel.goldstick at gmail.com
Mon Mar 4 14:15:06 CET 2013


On Mon, Mar 4, 2013 at 5:37 AM, VGNU Linux <vgnulinux at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130304/c527a583/attachment.html>


More information about the Python-list mailing list