Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.016 X-Spam-Evidence: '*H*': 0.97; '*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; 'open\xa0': 0.16; 'subject:issue': 0.16; 'mon,': 0.16; 'wrote:': 0.17; '8bit%:3': 0.17; 'typing': 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; 'displays': 0.27; 'skip:" 50': 0.27; 'skip:& 60': 0.27; 'tree': 0.27; 'message-id:@mail.gmail.com': 0.27; 'url:mailman': 0.29; '8bit%:5': 0.29; 'skip:& 10': 0.29; 'error': 0.30; 'url:python': 0.32; 'file': 0.32; 'print': 0.32; 'url:listinfo': 0.32; 'page.': 0.33; 'traceback': 0.33; 'code:': 0.33; 'hi,': 0.33; 'skip:& 20': 0.33; 'received:google.com': 0.34; 'wrong': 0.34; 'thanks': 0.34; 'open': 0.35; 'pm,': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'received:74.125': 0.36; 'url:org': 0.36; 'client': 0.36; 'skip:t 40': 0.37; 'quite': 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; '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=a+GtoAmAupKlGmah0+wqXbg28O6fZXE4dVt0qjKelc4=; b=qGxeIqnohyaHWh9+Xob2Uxoq1HJ2v3BKMh1lv2gAjWCBV3kNxDUNyl4HBmFITzYLut fspn26BM2qxIg7iwgprBM8odfdfTGlKGGXA7JdpiAITnPPBDaeoJwzRcYvJ3fs9fTzAf KdeepSpeYnWbfCdmW7xXhaSuyy/MgIvwSThdCdIENWd39j+Bqpo5L8hYjDTzUIVxvdK9 jWoBNjvM+1Q+svxC4anS6LU4YCCp+nEYH0Mggl0fbVim6UsxVyg2gTMUaZGtoHc7F/K2 xZCPFpiTkPwmTnHr6kR3uu93N6cbQGRQw57W1IfEPj+DVUtg5ZJWpsZHGUCDD8qvgQGn FZLA== MIME-Version: 1.0 X-Received: by 10.14.5.6 with SMTP id 6mr66444879eek.42.1362459735964; Mon, 04 Mar 2013 21:02:15 -0800 (PST) In-Reply-To: References: Date: Tue, 5 Mar 2013 10:32:15 +0530 Subject: Re: Python SUDS issue From: VGNU Linux To: Joel Goldstick Content-Type: multipart/alternative; boundary=047d7b67098f95634904d72660e3 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: 168 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362459737 news.xs4all.nl 6874 [2001:888:2000:d::a6]:58422 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40501 --047d7b67098f95634904d72660e3 Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > > > > 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 > --047d7b67098f95634904d72660e3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
Typing URL in the browser displays document = tree as a web page.
Is it right or there is something wrong= with it ?

Regards,
VG= NU


On Mon,= Mar 4, 2013 at 6:45 PM, Joel Goldstick <joel.goldstick@gmail.com> wrote:



On Mon, Mar 4, 201= 3 at 5:37 AM, VGNU Linux <vgnulinux@gmail.com> 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


Wha= t happens when you type this in your browser: https://46.51.221.13= 8/PBExternalServices/v1/soap?wsdl
=A0
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/l= msglobal/xsd/v1/types, )'

Appreciate your help.
Thanks in advance,
VGNU

--
http://mail.python.org/mailman/listinfo/python-list




--

--047d7b67098f95634904d72660e3--