Question: Downloading data from BRENDA
0
gravatar for Natasha
11 months ago by
Natasha40
Natasha40 wrote:

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?

soappy soap brenda api zeep • 595 views
ADD COMMENTlink modified 3 months ago by BRENDA-enzymes10 • written 11 months ago by Natasha40

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 REPLYlink written 11 months ago by h.mon29k

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 REPLYlink modified 11 months ago • written 11 months ago by Natasha40

Any suggestions on how to proceed?

ADD REPLYlink written 11 months ago by Natasha40
1
gravatar for BRENDA-enzymes
3 months ago by
BRENDA-enzymes10 wrote:

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

ADD COMMENTlink written 3 months ago by BRENDA-enzymes10
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1277 users visited in the last hour