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


Groups > comp.lang.python > #50013

Re: Convert SOAP response (ArrayOfInt) to Python list

Date 2013-07-05 22:41 +0300
From Burak Arslan <burak.arslan@arskom.com.tr>
Subject Re: Convert SOAP response (ArrayOfInt) to Python list
References <502d34a9-551c-4939-b570-f6d7c92051bd@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.4307.1373053837.3114.python-list@python.org> (permalink)

Show all headers | 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 | NextPrevious in thread | Find similar | Unroll thread


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