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


Groups > comp.lang.python > #40702

Re: Python SUDS issue

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'valueerror:': 0.07; 'namespace': 0.09; 'bug': 0.10; 'cc:addr :python-list': 0.10; "skip:' 30": 0.15; '"import"': 0.16; 'guys,': 0.16; 'subject:issue': 0.16; 'type:': 0.16; 'wrote:': 0.17; 'fix': 0.17; '8bit%:3': 0.17; 'element': 0.17; 'email addr:gmail.com&gt;': 0.20; 'issue.': 0.20; 'skip:" 30': 0.20; 'trying': 0.21; 'import': 0.21; 'do.': 0.21; 'error.': 0.21; 'occurs': 0.22; 'help.': 0.22; 'cc:2**0': 0.23; '&gt;': 0.23; 'seems': 0.23; 'raise': 0.24; 'linux': 0.24; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'looks': 0.26; '(most': 0.27; 'executing': 0.27; 'skip:" 50': 0.27; 'skip:& 60': 0.27; 'message-id:@mail.gmail.com': 0.27; 'changed.': 0.29; 'writes:': 0.29; 'url:mailman': 0.29; 'skip:& 10': 0.29; 'maybe': 0.29; 'error': 0.30; 'lists': 0.31; 'code': 0.31; 'url:python': 0.32; 'file': 0.32; 'print': 0.32; 'url:listinfo': 0.32; 'traceback': 0.33; 'code:': 0.33; 'received:google.com': 0.34; 'wrong': 0.34; 'pm,': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'url:org': 0.36; 'totally': 0.36; 'method': 0.36; 'client': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'page': 0.38; 'description': 0.39; 'called': 0.39; 'google': 0.39; 'url:mail': 0.40; 'your': 0.60; 'service.': 0.61; 'url:ip addr': 0.62; 'here': 0.65; 'stuck': 0.65; '2013': 0.84; 'address}': 0.84; 'url:138': 0.84; 'url:v1': 0.84; 'doctor': 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=k5HuK+m7Snb7+oJp8DCs9wRrA+MX7LgXjxxjUpkBLtk=; b=YvUpUA7Ic+BgvZ1ur3gXXcOMyLRJbp8zIeKRKEKmbE3XZ7HPwJmI/xqmZBI3xeQnjB BfTKS/wFnkhqNvBVKEzr+TZcd4zYSDLhUCLAtjZv+Yn9rS2AYEOJ3I/y2BcLm94ae+xO ckucIF7dN45dHMsLckASvvUfIZ4f9VNPiQzHV1hI51tDkubTr8xVpJT62ogt6e1j/qq1 rbQhn5M7g9cO22m0yYVlZi6G2ZNej46zBazD7X5kWDAgULjdqCVnr50NiPyelqGz1iEx onSDKh/MD4Hej1tRDaGVRZdRICZbD3MaCHHyHCCUxZxUg0jiIiWrFNzeNicIuBmjMJhs BgvQ==
MIME-Version 1.0
X-Received by 10.14.3.70 with SMTP id 46mr89553389eeg.2.1362631076561; Wed, 06 Mar 2013 20:37:56 -0800 (PST)
In-Reply-To <87d2vejoz7.fsf@handshake.de>
References <CANWwTF-c+r0mS_qGYkKvHcff7NSGM0QoUJaJG1nxFsxwpA=xLw@mail.gmail.com> <87d2vejoz7.fsf@handshake.de>
Date Thu, 7 Mar 2013 10:07:56 +0530
Subject Re: Python SUDS issue
From VGNU Linux <vgnulinux@gmail.com>
To dieter <dieter@handshake.de>
Content-Type multipart/alternative; boundary=047d7b66f6194770dd04d74e4527
Cc "python-list@python.org" <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 <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.2977.1362631399.2939.python-list@python.org> (permalink)
Lines 169
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362631399 news.xs4all.nl 6899 [2001:888:2000:d::a6]:46321
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40702

Show key headers only | View raw


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

Hi Guys,
Not aware what "import" here is and what it will do.
But going through some google search result page found that there is
something called doctor in suds.
so tried changing code and it did fix the issue.
suds.TypeNotFound: Type not found: '(GetAccountBalanceFaultResponse,
http://www.payback.net/lmsglobal/xsd/v1/types, )'

Here is what i changed.
from suds.client import Client
from suds.xsd.doctor import Import, ImportDoctor
from suds.sax.element import Element

wsdlurl = 'https://46.51.221.138/PBExternalServices/v1/soap?wsdl'
schemaurl = 'http://www.payback.net/lmsglobal/xsd/v1/types'
schemaimport = Import(schemaurl)
schemadoctor = ImportDoctor(schemaimport)
client = Client(url=wsdlurl,doctor=schemadoctor)
print client

Printing client now lists all the methods and types associated with the
service.
But again stuck as on executing a method
response = client.service.GetAccountBalance(authtype)
replies with the error.
ValueError: unknown url type: {endpoint address}

Totally confused as what is wrong going on here.

Appreciate your help.
Regards,
VGNU


On Tue, Mar 5, 2013 at 12:46 PM, dieter <dieter@handshake.de> wrote:

> VGNU Linux <vgnulinux@gmail.com> writes:
>
> > ...
> > 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):
> > ...
> > 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, )'
>
> Looks like a bug in the "WSDL" description of the web service.
> It seems to reference a type "GetAccountBalanceFaultResponse"
> associated with the namespace "
> http://www.payback.net/lmsglobal/xsd/v1/types",
> but "suds" cannot find the type.
>
> Maybe an "import" is missing in the "WSDL" description.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

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


Thread

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

csiph-web