Downloading data from BRENDA
1
0
Entering edit mode
5.5 years ago
Natasha ▴ 40

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 • 2.7k views
ADD COMMENT
0
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

Any suggestions on how to proceed?

ADD REPLY
1
Entering edit mode
4.8 years ago

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

ADD COMMENT

Login before adding your answer.

Traffic: 1822 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6