Question: Downloading data from BRENDA
0
gravatar for Natasha
5 weeks ago by
Natasha30
Natasha30 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 • 166 views
ADD COMMENTlink modified 5 weeks ago • written 5 weeks ago by Natasha30

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 5 weeks ago by h.mon26k

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 5 weeks ago • written 5 weeks ago by Natasha30

Any suggestions on how to proceed?

ADD REPLYlink written 28 days ago by Natasha30
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: 873 users visited in the last hour