Mercurial > repos > uga-galaxy-group > webservice_toolsuite_v1_1
comparison WebServiceExtensionsV1.1/WebServiceToolWorkflow_REST_SOAP/clientGenerator/clustalw2/clustalw2_client.py @ 0:049760c677de default tip
Galaxy WSExtensions added successfully
author | uga-galaxy-group |
---|---|
date | Tue, 05 Jul 2011 19:34:18 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:049760c677de |
---|---|
1 ################################################## | |
2 # file: clustalw2_client.py | |
3 # | |
4 # client stubs generated by "ZSI.generate.wsdl2python.WriteServiceModule" | |
5 # /home/alok/galaxy-central/tools/WebServiceToolWorkflow_REST_SOAP/WebServiceTool_input_method_m.py /home/alok/galaxy-central/database/files/000/dataset_21.dat http://www.ebi.ac.uk/Tools/services/soap/clustalw2?wsdl getParameters /home/alok/galaxy-central/database/files/000/dataset_30.dat | |
6 # | |
7 ################################################## | |
8 | |
9 from clustalw2_types import * | |
10 import urlparse, types | |
11 from ZSI.TCcompound import ComplexType, Struct | |
12 from ZSI import client | |
13 from ZSI.schema import GED, GTD | |
14 import ZSI | |
15 | |
16 # Locator | |
17 class JDispatcherServiceLocator: | |
18 JDispatcherServiceHttpPort_address = "http://www.ebi.ac.uk/Tools/services/soap/clustalw2" | |
19 def getJDispatcherServiceHttpPortAddress(self): | |
20 return JDispatcherServiceLocator.JDispatcherServiceHttpPort_address | |
21 def getJDispatcherServiceHttpPort(self, url=None, **kw): | |
22 return JDispatcherServiceHttpBindingSOAP(url or JDispatcherServiceLocator.JDispatcherServiceHttpPort_address, **kw) | |
23 | |
24 # Methods | |
25 class JDispatcherServiceHttpBindingSOAP: | |
26 def __init__(self, url, **kw): | |
27 kw.setdefault("readerclass", None) | |
28 kw.setdefault("writerclass", None) | |
29 # no resource properties | |
30 self.binding = client.Binding(url=url, **kw) | |
31 # no ws-addressing | |
32 | |
33 # op: run | |
34 def run(self, request, **kw): | |
35 if isinstance(request, runRequest) is False: | |
36 raise TypeError, "%s incorrect request type" % (request.__class__) | |
37 # no input wsaction | |
38 self.binding.Send(None, None, request, soapaction="urn:Run", **kw) | |
39 # no output wsaction | |
40 response = self.binding.Receive(runResponse.typecode) | |
41 return response | |
42 | |
43 # op: getStatus | |
44 def getStatus(self, request, **kw): | |
45 if isinstance(request, getStatusRequest) is False: | |
46 raise TypeError, "%s incorrect request type" % (request.__class__) | |
47 # no input wsaction | |
48 self.binding.Send(None, None, request, soapaction="urn:GetStatus", **kw) | |
49 # no output wsaction | |
50 response = self.binding.Receive(getStatusResponse.typecode) | |
51 return response | |
52 | |
53 # op: getResultTypes | |
54 def getResultTypes(self, request, **kw): | |
55 if isinstance(request, getResultTypesRequest) is False: | |
56 raise TypeError, "%s incorrect request type" % (request.__class__) | |
57 # no input wsaction | |
58 self.binding.Send(None, None, request, soapaction="urn:GetResultTypes", **kw) | |
59 # no output wsaction | |
60 response = self.binding.Receive(getResultTypesResponse.typecode) | |
61 return response | |
62 | |
63 # op: getResult | |
64 def getResult(self, request, **kw): | |
65 if isinstance(request, getResultRequest) is False: | |
66 raise TypeError, "%s incorrect request type" % (request.__class__) | |
67 # no input wsaction | |
68 self.binding.Send(None, None, request, soapaction="urn:GetResult", **kw) | |
69 # no output wsaction | |
70 response = self.binding.Receive(getResultResponse.typecode) | |
71 return response | |
72 | |
73 # op: getParameters | |
74 def getParameters(self, request, **kw): | |
75 if isinstance(request, getParametersRequest) is False: | |
76 raise TypeError, "%s incorrect request type" % (request.__class__) | |
77 # no input wsaction | |
78 self.binding.Send(None, None, request, soapaction="urn:GetParameters", **kw) | |
79 # no output wsaction | |
80 response = self.binding.Receive(getParametersResponse.typecode) | |
81 return response | |
82 | |
83 # op: getParameterDetails | |
84 def getParameterDetails(self, request, **kw): | |
85 if isinstance(request, getParameterDetailsRequest) is False: | |
86 raise TypeError, "%s incorrect request type" % (request.__class__) | |
87 # no input wsaction | |
88 self.binding.Send(None, None, request, soapaction="urn:GetParameterDetails", **kw) | |
89 # no output wsaction | |
90 response = self.binding.Receive(getParameterDetailsResponse.typecode) | |
91 return response | |
92 | |
93 runRequest = GED("http://soap.jdispatcher.ebi.ac.uk", "run").pyclass | |
94 | |
95 runResponse = GED("http://soap.jdispatcher.ebi.ac.uk", "runResponse").pyclass | |
96 | |
97 getStatusRequest = GED("http://soap.jdispatcher.ebi.ac.uk", "getStatus").pyclass | |
98 | |
99 getStatusResponse = GED("http://soap.jdispatcher.ebi.ac.uk", "getStatusResponse").pyclass | |
100 | |
101 getResultTypesRequest = GED("http://soap.jdispatcher.ebi.ac.uk", "getResultTypes").pyclass | |
102 | |
103 getResultTypesResponse = GED("http://soap.jdispatcher.ebi.ac.uk", "getResultTypesResponse").pyclass | |
104 | |
105 getResultRequest = GED("http://soap.jdispatcher.ebi.ac.uk", "getResult").pyclass | |
106 | |
107 getResultResponse = GED("http://soap.jdispatcher.ebi.ac.uk", "getResultResponse").pyclass | |
108 | |
109 getParametersRequest = GED("http://soap.jdispatcher.ebi.ac.uk", "getParameters").pyclass | |
110 | |
111 getParametersResponse = GED("http://soap.jdispatcher.ebi.ac.uk", "getParametersResponse").pyclass | |
112 | |
113 getParameterDetailsRequest = GED("http://soap.jdispatcher.ebi.ac.uk", "getParameterDetails").pyclass | |
114 | |
115 getParameterDetailsResponse = GED("http://soap.jdispatcher.ebi.ac.uk", "getParameterDetailsResponse").pyclass |