Path: csiph.com!usenet.pasdenom.info!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'subject:Python': 0.05; 'python': 0.09; '__init__': 0.09; 'cc:addr:python-list': 0.10; "skip:' 30": 0.15; 'googling': 0.16; 'guys,': 0.16; 'subject:issue': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'load': 0.19; 'module': 0.19; 'email addr:gmail.com>': 0.20; 'skip:" 40': 0.20; 'trying': 0.21; 'import': 0.21; 'occurs': 0.22; 'help.': 0.22; 'cc:2**0': 0.23; 'raise': 0.24; 'linux': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; '(most': 0.27; 'am,': 0.27; 'skip:" 50': 0.27; 'skip:& 60': 0.27; 'message- id:@mail.gmail.com': 0.27; 'url:mailman': 0.29; 'skip:& 10': 0.29; 'error': 0.30; 'url:python': 0.32; 'file': 0.32; 'print': 0.32; 'url:listinfo': 0.32; 'traceback': 0.33; 'code:': 0.33; 'skip:& 20': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'open': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'client': 0.36; 'skip:t 40': 0.37; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'skip:" 10': 0.40; 'url:mail': 0.40; 'your': 0.60; 'url:ip addr': 0.62; 'services.': 0.63; 'here': 0.65; '8bit%:10': 0.69; '2013': 0.84; '220,': 0.84; 'confusing': 0.84; 'url:138': 0.84; 'url:v1': 0.84; 'browser:': 0.91; 'joel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=MEMHD3DKhDMjL083G8e7e1V94yaFHCQxMOvg57LbfPY=; b=V4rZX1u7KJcvd24qgNwwSyBeFdWfntAIASjFbhv7mLAjVpFujX5Sfvu9fYk2/I9y3O RHQOEmbNyOARdDkh8SYXRicZyUfP+hMpB/OrQSBeCj76OogP6IMThF4+nzFDBugXP2gq Vj5BlHS9tNRdpeJ3NT5KXAw/gBazFZ3vZxTMi9RDkRpKBuwjpKwDPY/5+oWoP8KV3FwX PAws3VZyJYk+cD+DbutcrngTfYk5TLG/TDDxdOoFfrEieVDlaIpF9TU/wQxczJXltxc9 l98PAnapEmcu6OVFYunoQ37U+7mj/47KY++kmo919SkbVhofXODVGqsysTj2dLnVMqv8 reRQ== MIME-Version: 1.0 X-Received: by 10.52.180.195 with SMTP id dq3mr7081963vdc.9.1362402907028; Mon, 04 Mar 2013 05:15:07 -0800 (PST) In-Reply-To: References: Date: Mon, 4 Mar 2013 08:15:06 -0500 Subject: Re: Python SUDS issue From: Joel Goldstick To: VGNU Linux Content-Type: multipart/alternative; boundary=bcaec51969f350b2f104d7192527 Cc: "python-list@python.org" 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: 131 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362402909 news.xs4all.nl 6859 [2001:888:2000:d::a6]:35524 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40444 --bcaec51969f350b2f104d7192527 Content-Type: text/plain; charset=UTF-8 On Mon, Mar 4, 2013 at 5:37 AM, VGNU Linux 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 > 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 --bcaec51969f350b2f104d7192527 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Mon, Mar 4, 2013 at 5:37 AM, VGNU Linux <vgnulinux@gmail.com<= /a>> wrote:
Hi Guys,=
I am pretty new to web services.
After some googling found t= hat python suds is a suitable module to create web service client. I am try= ing to create a client but its giving me an error which is quite confusing = for me.

Here is my code:
from suds.client i= mport Client


What happ= ens when you type this in your browser: https://46.51.221.138/PBEx= ternalServices/v1/soap?wsdl
=C2=A0
client =3D Client(wsdlurl)
print client

And following is the error that occurs on trying = to print client.
Traceback (most recent call last):
=C2=A0 File "trysuds.py", line 3, in <module>
=C2=A0 =C2=A0 client =3D Client(wsdlurl)
=C2=A0 File "C:\P= ython25\Lib\site-packages\suds\client.py", line 112, in __init__
=
=C2=A0 =C2=A0 self.wsdl =3D reader.open(url)
=C2=A0 File "C:\Python25\Lib\site-packages\suds\reader.py", = line 152, in open
=C2=A0 =C2=A0 d =3D self.fn(url, self.options)<= /div>
=C2=A0 File "C:\Python25\Lib\site-packages\suds\wsdl.py"= ;, line 159, in __init__
=C2=A0 =C2=A0 self.build_schema()
=C2=A0 File "C:\Pytho= n25\Lib\site-packages\suds\wsdl.py", line 220, in build_schema
=C2=A0 =C2=A0 self.schema =3D container.load(self.options)
=C2= =A0 File "C:\Python25\Lib\site-packages\suds\xsd\schema.py", line= 95, in load
=C2=A0 =C2=A0 child.dereference()
=C2=A0 File "C:\Pytho= n25\Lib\site-packages\suds\xsd\schema.py", line 323, in dereference
=C2=A0 =C2=A0 midx, deps =3D x.dependencies()
=C2=A0 File= "C:\Python25\Lib\site-packages\suds\xsd\sxbasic.py", line 469, i= n dependencies
=C2=A0 =C2=A0 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
--bcaec51969f350b2f104d7192527--