This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Downloading data from BRENDA

Hi All,

I am trying to programmatically access BRENDA database. However, there is a problem in the installation of SOAPpy library mentioned in the sample code available here, in python 3. This is the wsdl given in the above link, wsdl = "https://www.brenda-enzymes.org/soap/brenda.wsdl"

The above url itself has soap specified in it. But I am not able to install SOAPpy in ptyhon 3. Could someone suggest if there is an alternative/ how the above url can be accessed without SOAPpy?

brenda soap soappy api zeep

there is a problem in the installation of SOAPpy library mentioned in the sample code available here, in python 3.

When asking a question, it is always welcome to explain clearly (including error messages) the problems found.

It seems SOAPpy only works with Python 2. You can install it with conda or from PyPI with pip install SOAPpy (I recommend using virtualenv in this case). You can also install a different SOAP library for python 3, such as Zeep or PySimpleSOAP.

Hi ,

I installed zeep in python 3 and tried the following,

import collections
import pandas as pd
import zeep
import hashlib

wsdl = "https://www.brenda-enzymes.org/soap/brenda.wsdl"
password = hashlib.sha256("xxx".encode('utf-8')).hexdigest()
parameters = "xxx," + password + ",ecNumber*{}#organism*{}#".format("2.7.1.2", "Homo sapiens")
client = zeep.Client(wsdl=wsdl)
# client = SOAPProxy(endpoint_url) #  used with SOAPpy library, works in python 2
print(client)

km_string = client.getKmValue(parameters)

The following error occurs

AttributeError: 'Client' object has no attribute 'getKmValue'

Could you please have a look at this? I'm not sure what's going wrong.

Any suggestions on how to proceed?

1 answer

We fixed the webservice. It should work, now. Please have a look at the SOAP documentation on our website.

Log in to answer this question.