<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 4, 2013 at 5:37 AM, VGNU Linux <span dir="ltr"><<a href="mailto:vgnulinux@gmail.com" target="_blank">vgnulinux@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Guys,<div>I am pretty new to web services.</div><div>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.</div>
<div><br></div><div>Here is my code:</div><div><div><div>from suds.client import Client</div><div>wsdlurl = '<a href="https://46.51.221.138/PBExternalServices/v1/soap?wsdl" target="_blank">https://46.51.221.138/PBExternalServices/v1/soap?wsdl</a>'</div>
<div></div></div></div></div></blockquote><div><br><br></div><div>What happens when you type this in your browser: <a href="https://46.51.221.138/PBExternalServices/v1/soap?wsdl" target="_blank">https://46.51.221.138/PBExternalServices/v1/soap?wsdl</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>client = Client(wsdlurl)</div><div>print client</div></div>
<div><br></div></div><div>And following is the error that occurs on trying to print client.</div><div><div>Traceback (most recent call last):</div>
<div> File "trysuds.py", line 3, in <module></div><div> client = Client(wsdlurl)</div><div> File "C:\Python25\Lib\site-packages\suds\client.py", line 112, in __init__</div><div> self.wsdl = reader.open(url)</div>
<div> File "C:\Python25\Lib\site-packages\suds\reader.py", line 152, in open</div><div> d = self.fn(url, self.options)</div><div> File "C:\Python25\Lib\site-packages\suds\wsdl.py", line 159, in __init__</div>
<div> self.build_schema()</div><div> File "C:\Python25\Lib\site-packages\suds\wsdl.py", line 220, in build_schema</div><div> self.schema = container.load(self.options)</div><div> File "C:\Python25\Lib\site-packages\suds\xsd\schema.py", line 95, in load</div>
<div> child.dereference()</div><div> File "C:\Python25\Lib\site-packages\suds\xsd\schema.py", line 323, in dereference</div><div> midx, deps = x.dependencies()</div><div> File "C:\Python25\Lib\site-packages\suds\xsd\sxbasic.py", line 469, in dependencies</div>
<div> raise TypeNotFound(self.ref)</div><div>suds.TypeNotFound: Type not found: '(GetAccountBalanceFaultResponse, <a href="http://www.payback.net/lmsglobal/xsd/v1/types" target="_blank">http://www.payback.net/lmsglobal/xsd/v1/types</a>, )'</div>
<div><br></div><div>Appreciate your help.</div><div>Thanks in advance,</div><div>VGNU</div></div></div>
<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>Joel Goldstick<br></div><a href="http://joelgoldstick.com" target="_blank">http://joelgoldstick.com</a><br></div>
</div></div>