Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40440

Python SUDS issue

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 <vgnulinux@gmail.com>
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 <vgnulinux@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2833.1362393441.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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 <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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Python SUDS issue VGNU Linux <vgnulinux@gmail.com> - 2013-03-04 16:07 +0530

csiph-web