Skip to content

Commit

Permalink
update registry.py to use a mirror of WSDL file with fixed url
Browse files Browse the repository at this point in the history
  • Loading branch information
ivh committed May 4, 2017
1 parent 8655b2f commit 80bbdd3
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions other/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,15 @@
"""

#REL_REG='http://registry.vamdc.eu/registry-11.12/services/RegistryQueryv1_0'
REL_REG='http://registry.vamdc.eu/registry-12.07/services/RegistryQueryv1_0'
DEV_REG='http://casx019-zone1.ast.cam.ac.uk/registry/services/RegistryQueryv1_0'
REL_REG='http://registry.vamdc.eu/registry-12.07/services/RegistryQueryv1_0'
#DEV_REG='http://casx019-zone1.ast.cam.ac.uk/registry/services/RegistryQueryv1_0'
#REG='http://registry.vamdc.eu/registry-12.07/services/RegistryQueryv1_0'

REGURL=DEV_REG
REGURL=REL_REG
REGURL='http://casx019-zone1.ast.cam.ac.uk/registry/services/RegistryQueryv1_0'
WSDL=REGURL+'?wsdl'
#REGURL=REG
#WSDL=REGURL+'?wsdl'

# this is a copy of the URL above but with
# schema locations fixed:
#WSDL = 'http://tmy.se/t/devreg_wsdl.xml'
WSDL = 'https://tmy.se/t/reg_wsdl.xml'

from suds.client import Client

Expand Down Expand Up @@ -48,7 +44,7 @@ def getNodeList():
except:
url = None

nameurls.append({\
nameurls.append({\
'name':node.title,
'url':url,
})
Expand Down

0 comments on commit 80bbdd3

Please sign in to comment.