Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:Python': 0.05; 'python': 0.09; '__init__': 0.09; "skip:' 30": 0.15; 'googling': 0.16; 'guys,': 0.16; 'open\xa0': 0.16; 'subject:issue': 0.16; '8bit%:3': 0.17; 'load': 0.19; 'module': 0.19; 'skip:" 40': 0.20; 'trying': 0.21; 'import': 0.21; 'occurs': 0.22; 'help.': 0.22; 'raise': 0.24; '(most': 0.27; 'skip:" 50': 0.27; 'skip:& 60': 0.27; 'message-id:@mail.gmail.com': 0.27; '8bit%:5': 0.29; 'skip:& 10': 0.29; 'error': 0.30; 'file': 0.32; 'print': 0.32; 'traceback': 0.33; 'to:addr:python-list': 0.33; 'code:': 0.33; 'skip:& 20': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'open': 0.35; 'but': 0.36; 'received:74.125': 0.36; 'client': 0.36; 'skip:t 40': 0.37; 'quite': 0.37; 'some': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'your': 0.60; 'url:ip addr': 0.62; 'services.': 0.63; 'here': 0.65; '220,': 0.84; 'confusing': 0.84; 'url:138': 0.84; 'url:v1': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=z1LrwOJfkhoFgnJ5h7pSKCc3HnfoR9rVI8jWw2l8abY=; b=OisW7n7DlMj/6Wex2LznLYX6acx0iTiTREuDJd2SrKMtA0wyZzYUjKz2quC3J3ZHUI bIoOugkuG0q45thtmEaGJO1fN3sLV48WsqdPPHp7w0awmcibuCqZ3ZfaHszL01FwOfc8 BToJl8H6V3SlWoiksDtetDO+TOnEzQSwuHa50wNSE4HQBQswyY7eGp2DO4o1EaRKqAqU uCtfLOn2mxMOIlx9zTw3cH+p0xBdsjZTrA7EdpnF9FYnzOgyRfRI1h/KLsib5aPdbwiL 527kvzWUZf6mBKR8/145dOU2+L6jh9NLnEIA3e+bRzs62Q9g4u0BAMgvuDauXHVQQJsr /4DA== MIME-Version: 1.0 X-Received: by 10.14.211.65 with SMTP id v41mr57357987eeo.33.1362393433115; Mon, 04 Mar 2013 02:37:13 -0800 (PST) Date: Mon, 4 Mar 2013 16:07:13 +0530 Subject: Python SUDS issue From: VGNU Linux To: python-list@python.org Content-Type: multipart/alternative; boundary=047d7b621e9ca0418104d716f062 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 84 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362393441 news.xs4all.nl 6932 [2001:888:2000:d::a6]:39513 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40440 --047d7b621e9ca0418104d716f062 Content-Type: text/plain; charset=ISO-8859-1 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 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 --047d7b621e9ca0418104d716f062 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Guys,
I am pretty new to web services.
<= div style>After some googling found that python suds is a suitable module t= o 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
client =3D Client(wsdlurl)
print client

=
And following is the error that occurs on trying to = print client.
Traceback (most recent call last):
=A0 File "trysuds.py", line 3, in <module>
= =A0 =A0 client =3D Client(wsdlurl)
=A0 File "C:\Python25\Lib= \site-packages\suds\client.py", line 112, in __init__
=A0 = =A0 self.wsdl =3D reader.open(url)
=A0 File "C:\Python25\Lib\site-packages\suds\reader.py", lin= e 152, in open
=A0 =A0 d =3D self.fn(url, self.options)
=A0 File "C:\Python25\Lib\site-packages\suds\wsdl.py", line 159,= in __init__
=A0 =A0 self.build_schema()
=A0 File "C:\Python25\Lib\s= ite-packages\suds\wsdl.py", line 220, in build_schema
=A0 = =A0 self.schema =3D container.load(self.options)
=A0 File "C= :\Python25\Lib\site-packages\suds\xsd\schema.py", line 95, in load
=A0 =A0 child.dereference()
=A0 File "C:\Python25\Lib\s= ite-packages\suds\xsd\schema.py", line 323, in dereference
= =A0 =A0 midx, deps =3D x.dependencies()
=A0 File "C:\Python2= 5\Lib\site-packages\suds\xsd\sxbasic.py", line 469, in dependencies
=A0 =A0 raise TypeNotFound(self.ref)
suds.TypeNotFound: Type= not found: '(GetAccountBalanceFaultResponse, http://www.payback.net/lmsglobal/xsd/v1/ty= pes, )'

Appreciate your help.
Thanks in a= dvance,
VGNU
--047d7b621e9ca0418104d716f062--