Convert SOAP response (ArrayOfInt) to Python list

Burak Arslan burak.arslan at
Fri Jul 5 21:41:16 CEST 2013


FYI, There's a soap-specific list: soap at

On 07/04/13 20:57, robert.winkler at wrote:
> Thanks to the OSA library, which works for SOAP requests with Python 3.x, I can now use SOAP services at
> 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 to get your list.
It should already be a regular Python list.

I hope that helps.


More information about the Python-list mailing list