Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50013
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <burak.arslan@arskom.com.tr> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'list?': 0.07; 'soap': 0.07; 'transform': 0.07; 'assuming': 0.09; 'correspond': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'burak': 0.16; 'format:': 0.16; 'from:addr:arskom.com.tr': 0.16; 'from:addr:burak.arslan': 0.16; 'from:name:burak arslan': 0.16; 'fyi,': 0.16; 'helps.': 0.16; 'message-id:@arskom.com.tr': 0.16; 'received:arskomhosting.com': 0.16; 'subject:Convert': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'library,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'subject:) ': 0.29; 'list:': 0.30; 'subject:list': 0.30; '(which': 0.31; 'requests': 0.31; 'prints': 0.31; 'python.org': 0.32; 'regular': 0.32; 'could': 0.34; 'subject: (': 0.35; 'but': 0.35; 'thanks': 0.36; 'hi,': 0.36; 'should': 0.36; 'list': 0.37; 'email addr:python.org': 0.37; 'list.': 0.37; 'that,': 0.38; 'structure': 0.39; 'how': 0.40; 'hope': 0.61; 'numbers': 0.61; 'simple': 0.61; 'services': 0.66; 'results': 0.69; 'chemical': 0.84; 'subject:response': 0.91 |
| Date | Fri, 05 Jul 2013 22:41:16 +0300 |
| From | Burak Arslan <burak.arslan@arskom.com.tr> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130627 Thunderbird/17.0.7 |
| MIME-Version | 1.0 |
| To | robert.winkler@bioprocess.org |
| Subject | Re: Convert SOAP response (ArrayOfInt) to Python list |
| References | <502d34a9-551c-4939-b570-f6d7c92051bd@googlegroups.com> |
| In-Reply-To | <502d34a9-551c-4939-b570-f6d7c92051bd@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| 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 <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.4307.1373053837.3114.python-list@python.org> (permalink) |
| Lines | 31 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1373053837 news.xs4all.nl 15878 [2001:888:2000:d::a6]:50251 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:50013 |
Show key headers only | View raw
Hi, FYI, There's a soap-specific python.org list: soap@python.org On 07/04/13 20:57, robert.winkler@bioprocess.org wrote: > Thanks to the OSA library, which works for SOAP requests with Python 3.x, I can now use SOAP services at http://www.chemspider.com. > > The results structure is > <GetAsyncSearchResultResult> > <int>int</int> > <int>int</int> > </GetAsyncSearchResultResult> > > The result is a list of accession numbers (which correspond to chemical compounds) and I get them in the following format: > > [snip] > > How could I transform this to a simple python list? I did not use OSA, but assuming print(ret) prints that, you should do ret.int to get your list. It should already be a regular Python list. I hope that helps. Best, Burak
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Convert SOAP response (ArrayOfInt) to Python list robert.winkler@bioprocess.org - 2013-07-04 10:57 -0700 Re: Convert SOAP response (ArrayOfInt) to Python list Burak Arslan <burak.arslan@arskom.com.tr> - 2013-07-05 22:41 +0300
csiph-web