#!/usr/bin/env python from suds.client import Client import suds import logging logging.basicConfig(level=logging.INFO) logging.getLogger('suds.client').setLevel(logging.DEBUG) #from suds.xsd.sxbasic import Import #ns = 'http://www.ebi.ac.uk/WSsas/Schema' #location = 'http://www.ebi.ac.uk/thornton-srv/databases/WSsas/Schema/WSsas.xsd' #Import.bind(ns, location) url = 'http://www.ebi.ac.uk/thornton-srv/databases/WSsas/WSsas.wsdl' #imp = suds.xsd.doctor.Import('http://www.ebi.ac.uk/WSsas', # location='http://www.ebi.ac.uk/thornton-srv/databases/WSsas/Schema/WSsas.xsd') #imp.filter.add('http://www.ebi.ac.uk/WSsas') #doctor = suds.xsd.doctor.ImportDoctor(imp) #client = Client(url, doctor=doctor) client = Client(url) fasta = 'ACRQEPQPQGPPPAAGAVASYDYLVIGGGSGGLASARRAAELGARAAVVESHKLGGTCVNVGCVPKKVMWNTAVHSEFMHDHADYGFPSCEGKFNWRVIKEKRDAYVSRLNAIYQNNLTKSHIEIIRGHAAFTSDPKPTIEVSGKKYTAPHILIATGGMPSTPHESQIPGASLGITSDGFFQLEELPGRSVIVGAGYIAVEMAGILSALGSKTSLMIRHDKVLRSFDSMISTNCTEELENAGVEVLKFSQVKEVKKTLSGLEVSMVTAVPGRLPVMTMIPDVDCLLWAIGRVPNTKDLSLNKLGIQTDDKGHIIVDEFQNTNVKGIYAVGDVCGKALLTPVAIAAGRKLAHRLFEYKEDSKLDYNNIPTVVFSHPPIGTVGLTEDEAIHKYGIENVKTYSTSFTPMYHAVTKRKTKCVMKMVCANKEEKVVGIHMQGLGCDEMLQGFAVAVKMGATKADFDNTVAIHPTSSEELVTLR' input = client.factory.create('inputParameters') output = client.factory.create('outputParameters') print client.service.runFUNCRES(fasta, input, output)