Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41260
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'constructor': 0.07; 'parameter': 0.07; '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; 'thu,': 0.17; 'email addr:gmail.com>': 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; '>': 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; 'am,': 0.27; 'executing': 0.27; 'skip:" 50': 0.27; 'skip:& 60': 0.27; 'message-id:@mail.gmail.com': 0.27; 'arguments.': 0.29; '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; 'thanks': 0.34; 'pm,': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'received:74.125': 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; 'helping': 0.63; '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=wHtOMoHcjzPivUfIJxB70ethd8wFyrdfV5Zzj9Gmc8E=; b=k1gB5wNl4IZj+L5ZPxyQNnR4PZo9WnDO51Jo91AZb2HknYZ/fMNiCFcxkGN91bN8ri vU0DnTBjAcRr6MmyoG9/hDh8s4zO9GkPTT59r4Jc6whIN5hdYjUCGcnzOHmMwMUYNwje tUihmR86QjPEA1SoOsUzqgDcbp4VLY6iXKlX5u1M70JyhFd9eGxCYvuGvXQrneGTt2si KAzE7sC+oTZpnmALHXBdELMf3Eru9tO97ZHmPjzkHnC2LQ2ETANP+z+EPvI4aQ033DKp BroY2DvPIMVnIM0ty1Ic5faL7xqzH+adJ9EHrwpGwf0XEBEZIeePJ9Pa4E1LgBdwJ/Y2 wFrg== |
| MIME-Version | 1.0 |
| X-Received | by 10.14.110.68 with SMTP id t44mr16097659eeg.25.1363338758065; Fri, 15 Mar 2013 02:12:38 -0700 (PDT) |
| In-Reply-To | <CANWwTF8jRydSMmf5OHjXtsWaadpwCqGPJPF1p0TDqHS06_G4Rg@mail.gmail.com> |
| References | <CANWwTF-c+r0mS_qGYkKvHcff7NSGM0QoUJaJG1nxFsxwpA=xLw@mail.gmail.com> <87d2vejoz7.fsf@handshake.de> <CANWwTF8jRydSMmf5OHjXtsWaadpwCqGPJPF1p0TDqHS06_G4Rg@mail.gmail.com> |
| Date | Fri, 15 Mar 2013 14:42:37 +0530 |
| Subject | Re: Python SUDS issue |
| From | VGNU Linux <vgnulinux@gmail.com> |
| To | dieter <dieter@handshake.de> |
| Content-Type | multipart/alternative; boundary=089e016818d4623c5404d7f30a54 |
| 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.3334.1363338765.2939.python-list@python.org> (permalink) |
| Lines | 216 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1363338765 news.xs4all.nl 6849 [2001:888:2000:d::a6]:41844 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:41260 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Able to fix issue by including 'location' as parameter in client
constructor arguments.
client = Client(url=wsdlurl,doctor=schemadoctor, location='
https://46.51.221.138/PBExternalServices/v1/soap?wsdl')
Thanks for helping me out.
Regards,
VGNU
On Thu, Mar 7, 2013 at 10:07 AM, VGNU Linux <vgnulinux@gmail.com> wrote:
> 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
Re: Python SUDS issue VGNU Linux <vgnulinux@gmail.com> - 2013-03-15 14:42 +0530
csiph-web